Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 110.4 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 183.1 kB / 18.66 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09605, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00604/0.1021, allocations: 4.038 MB / 378.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2381/0.3403, allocations: 1.12 MB / 379.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008227/0.3412, allocations: 11.41 kB / 379.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003703/0.3416, allocations: 99.86 kB / 379.9 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000539/0.3422, allocations: 161.8 kB / 380.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006815/0.3429, allocations: 284.7 kB / 380.4 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.344, allocations: 0.9633 MB / 381.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000446/0.3444, allocations: 284.1 kB / 381.6 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005471/0.345, allocations: 377 kB / 382 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006222/0.3456, allocations: 444.1 kB / 382.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002729/0.3459, allocations: 112.3 kB / 382.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.3462, allocations: 114.1 kB / 382.6 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.3464, allocations: 215.7 kB / 382.8 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004261/0.3468, allocations: 410.6 kB / 383.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.3483, allocations: 1.14 MB / 384.4 MB, free: 8.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3484, allocations: 5.281 kB / 384.4 MB, free: 8.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3484, allocations: 0 / 384.4 MB, free: 8.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.982e-05/0.3484, allocations: 0 / 384.4 MB, free: 8.344 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.003319/0.3517, allocations: 1.206 MB / 385.6 MB, free: 7.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/0.3518, allocations: 9.5 kB / 385.6 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001249/0.3519, allocations: 98.05 kB / 385.7 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.3521, allocations: 82.72 kB / 385.8 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007849/0.3529, allocations: 447.6 kB / 386.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.412e-05/0.353, allocations: 40.38 kB / 386.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.3531, allocations: 56.14 kB / 386.3 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002366/0.3555, allocations: 0.9282 MB / 387.2 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.3555, allocations: 1.156 kB / 387.2 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.956e-05/0.3556, allocations: 23.25 kB / 387.2 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.3556, allocations: 13.47 kB / 387.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003158/0.3588, allocations: 0.9745 MB / 388.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005034/0.3639, allocations: 3.06 MB / 391.3 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00257/0.3665, allocations: 0.9095 MB / 392.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.3679, allocations: 441.8 kB / 392.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.188e-05/0.368, allocations: 15.88 kB / 392.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/0.3694, allocations: 464.2 kB / 393.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 4.117e-06/0.3694, allocations: 0 / 393.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003846/0.3733, allocations: 1.087 MB / 394.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.3734, allocations: 271.4 kB / 394.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.3745, allocations: 0.5018 MB / 395 MB, free: 2.609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.76e-05/0.3746, allocations: 37.95 kB / 395 MB, free: 2.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.3749, allocations: 342.8 kB / 395.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.3752, allocations: 175.1 kB / 395.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003548/0.3755, allocations: 146.6 kB / 395.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3757, allocations: 365.7 kB / 396 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.3771, allocations: 398.3 kB / 396.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.3785, allocations: 0.6565 MB / 397 MB, free: 1.188 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002376/0.3809, allocations: 0.9624 MB / 398 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.747e-06/0.3809, allocations: 2.312 kB / 398 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003166/0.3841, allocations: 1.136 MB / 399.1 MB, free: 160 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.365e-05/0.3842, allocations: 65.66 kB / 399.2 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.3842, allocations: 6.344 kB / 399.2 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.581e-05/0.3842, allocations: 10.12 kB / 399.2 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.3853, allocations: 230.9 kB / 399.5 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.317e-05/0.3854, allocations: 9.438 kB / 399.5 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.3866, allocations: 185 kB / 399.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.122e-05/0.3867, allocations: 34.11 kB / 399.7 MB, free: 15.9 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004156/0.3872, allocations: 216 kB / 399.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.3873, allocations: 59.12 kB / 399.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001664/0.3875, allocations: 64.7 kB / 400 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.3875, allocations: 11.88 kB / 400 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-05/0.3875, allocations: 1.375 kB / 400 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.3875, allocations: 4.5 kB / 400 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003787/0.3913, allocations: 1.649 MB / 401.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.3914, allocations: 0 / 401.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008246/0.3922, allocations: 144.7 kB / 401.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.3922, allocations: 6.594 kB / 401.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.775e-05/0.3923, allocations: 15.27 kB / 401.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/0.3923, allocations: 10.22 kB / 401.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3923, allocations: 0 / 401.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003998/0.3963, allocations: 1.294 MB / 403.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003954/0.3967, allocations: 135.6 kB / 403.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.3969, allocations: 12.38 kB / 403.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008277/0.3977, allocations: 103.1 kB / 403.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.3979, allocations: 53.09 kB / 403.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.554e-05/0.398, allocations: 17.92 kB / 403.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006892/0.3987, allocations: 348.6 kB / 403.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3987, allocations: 0 / 403.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007912/0.3995, allocations: 169.6 kB / 404 MB, free: 13.26 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004275/0.4038, allocations: 1.859 MB / 405.8 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002956/0.4068, allocations: 0.9897 MB / 406.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/0.4068, allocations: 1.094 kB / 406.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.4081, allocations: 418 kB / 407.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008455/0.4089, allocations: 91.44 kB / 407.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.4235, allocations: 6.175 MB / 413.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006659/0.4243, allocations: 0.8588 MB / 414.3 MB, free: 5.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006166/0.4249, allocations: 76.02 kB / 414.4 MB, free: 5.867 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/0.4254, allocations: 207.4 kB / 414.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4254, allocations: 4 kB / 414.6 MB, free: 5.664 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0492/0.4746, allocations: 13.3 MB / 427.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.844/10.32, allocations: 11.84 kB / 427.9 MB, free: 8.301 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-11 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches