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.00176/0.001761, allocations: 114.6 kB / 17.73 MB, free: 5.203 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.001651/0.001651, allocations: 188.2 kB / 18.67 MB, free: 4.273 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.62/1.62, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001552/0.001552, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1305, allocations: 46.61 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006327/0.1369, allocations: 4.034 MB / 378.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2363/0.3733, allocations: 1.124 MB / 379.8 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008277/0.3742, allocations: 9.344 kB / 379.8 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003245/0.3746, allocations: 99.56 kB / 379.9 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004722/0.375, allocations: 167.5 kB / 380.1 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007446/0.3758, allocations: 285.8 kB / 380.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.377, allocations: 0.9691 MB / 381.3 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004718/0.3774, allocations: 283.1 kB / 381.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005273/0.378, allocations: 375.2 kB / 382 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005724/0.3786, allocations: 437.7 kB / 382.4 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002263/0.3788, allocations: 113.4 kB / 382.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002608/0.3791, allocations: 114.4 kB / 382.6 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003424/0.3794, allocations: 213.1 kB / 382.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004048/0.3798, allocations: 417.9 kB / 383.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001447/0.3813, allocations: 1.141 MB / 384.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3813, allocations: 5.344 kB / 384.4 MB, free: 8.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3813, allocations: 0 / 384.4 MB, free: 8.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.3813, allocations: 0 / 384.4 MB, free: 8.211 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.003154/0.3845, allocations: 1.204 MB / 385.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.3846, allocations: 10.11 kB / 385.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.3847, allocations: 94.47 kB / 385.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.3848, allocations: 82.19 kB / 385.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.3854, allocations: 445.1 kB / 386.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/0.3855, allocations: 45.28 kB / 386.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.3856, allocations: 53.39 kB / 386.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002291/0.3879, allocations: 0.9275 MB / 387.2 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.3879, allocations: 5.156 kB / 387.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.388, allocations: 23.09 kB / 387.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.388, allocations: 13.56 kB / 387.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003003/0.391, allocations: 0.9739 MB / 388.2 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004583/0.3956, allocations: 3.059 MB / 391.3 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/0.398, allocations: 0.916 MB / 392.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.3993, allocations: 441.3 kB / 392.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.899e-05/0.3994, allocations: 15.44 kB / 392.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.4006, allocations: 459.5 kB / 393.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 3.146e-06/0.4007, allocations: 0 / 393.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003596/0.4043, allocations: 1.092 MB / 394.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.243e-05/0.4044, allocations: 274.6 kB / 394.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008023/0.4052, allocations: 0.498 MB / 395 MB, free: 2.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.116e-05/0.4053, allocations: 38.55 kB / 395 MB, free: 2.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/0.4055, allocations: 349.1 kB / 395.3 MB, free: 2.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.4056, allocations: 175.2 kB / 395.5 MB, free: 2.023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/0.4059, allocations: 139.1 kB / 395.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.406, allocations: 364.5 kB / 396 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.4072, allocations: 403.3 kB / 396.4 MB, free: 1.496 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.4085, allocations: 0.653 MB / 397.1 MB, free: 1.059 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002396/0.4109, allocations: 0.967 MB / 398 MB, free: 0.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.4109, allocations: 1.344 kB / 398 MB, free: 0.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002987/0.4139, allocations: 1.134 MB / 399.2 MB, free: 44 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.831e-05/0.414, allocations: 64.3 kB / 399.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.4141, allocations: 6.781 kB / 399.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.4141, allocations: 10 kB / 399.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.4151, allocations: 230.7 kB / 399.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.09e-05/0.4152, allocations: 13.97 kB / 399.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.4164, allocations: 181.3 kB / 399.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.692e-05/0.4165, allocations: 28.75 kB / 399.7 MB, free: 15.8 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.0003915/0.4169, allocations: 216.1 kB / 399.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.417, allocations: 60.5 kB / 400 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001911/0.4172, allocations: 67.33 kB / 400 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.4172, allocations: 13.44 kB / 400 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/0.4172, allocations: 3.938 kB / 400 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.4173, allocations: 7.922 kB / 400 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003723/0.421, allocations: 1.64 MB / 401.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.421, allocations: 4.188 kB / 401.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008872/0.4219, allocations: 148.2 kB / 401.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.4219, allocations: 6.625 kB / 401.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.011e-05/0.422, allocations: 7.625 kB / 401.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/0.422, allocations: 1.188 kB / 401.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.422, allocations: 1.156 kB / 401.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003679/0.4257, allocations: 1.294 MB / 403.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.4259, allocations: 139.7 kB / 403.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.426, allocations: 12.59 kB / 403.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007579/0.4268, allocations: 103 kB / 403.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/0.427, allocations: 53.08 kB / 403.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/0.4271, allocations: 17.78 kB / 403.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006092/0.4277, allocations: 352.7 kB / 403.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4277, allocations: 0 / 403.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007856/0.4285, allocations: 169.8 kB / 404 MB, free: 13.14 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.004044/0.4326, allocations: 1.856 MB / 405.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002875/0.4355, allocations: 0.9968 MB / 406.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.299e-06/0.4355, allocations: 1.531 kB / 406.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.4366, allocations: 410.9 kB / 407.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006926/0.4374, allocations: 91.05 kB / 407.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.4502, allocations: 6.172 MB / 413.5 MB, free: 6.715 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.4508, allocations: 0.8598 MB / 414.3 MB, free: 5.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004783/0.4513, allocations: 79.58 kB / 414.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000374/0.4516, allocations: 211.4 kB / 414.6 MB, free: 5.551 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4516, allocations: 4 kB / 414.6 MB, free: 5.547 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04382/0.4955, allocations: 13.31 MB / 427.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.519/10.01, allocations: 7.859 kB / 427.9 MB, free: 8.18 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