Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 208.6 kB / 24.49 MB, free: 4.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 54.58 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.271, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01213/0.2832, allocations: 13.42 MB / 409.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02624/0.3094, allocations: 19.4 MB / 429.2 MB, free: 0 / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002913/0.3123, allocations: 192.6 kB / 429.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004122/0.3164, allocations: 1.103 MB / 430.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01215/0.3286, allocations: 2.288 MB / 432.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007046/0.3356, allocations: 1.394 MB / 434.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01893/0.3546, allocations: 6.256 MB / 440.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.3557, allocations: 253 kB / 440.6 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002892/0.3586, allocations: 1.015 MB / 441.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002764/0.3614, allocations: 1.029 MB / 442.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003351/0.3617, allocations: 72 kB / 442.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006492/0.3682, allocations: 1.148 MB / 443.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007318/0.3689, allocations: 309.7 kB / 444.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003214/0.3722, allocations: 1.316 MB / 445.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.3836, allocations: 3.679 MB / 449.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.3836, allocations: 4 kB / 449.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3836, allocations: 0 / 449.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.765e-05/0.3837, allocations: 0 / 449.2 MB, free: 14.27 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.01028/0.394, allocations: 3.578 MB / 452.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/0.394, allocations: 11.98 kB / 452.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002138/0.3942, allocations: 94.5 kB / 452.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008406/0.3951, allocations: 393.6 kB / 453.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007658/0.4027, allocations: 2.374 MB / 455.6 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.052e-05/0.4028, allocations: 32.98 kB / 455.7 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002093/0.403, allocations: 51.95 kB / 455.7 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002514/0.4055, allocations: 0.707 MB / 456.4 MB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.4055, allocations: 0 / 456.4 MB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.4056, allocations: 16 kB / 456.4 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.591e-05/0.4057, allocations: 19.98 kB / 456.5 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003006/0.4087, allocations: 0.7968 MB / 457.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009237/0.4179, allocations: 2.848 MB / 460.1 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00218/0.4201, allocations: 0.5634 MB / 460.7 MB, free: 2.562 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/0.4219, allocations: 0.585 MB / 461.3 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02875/0.4507, allocations: 13.78 MB / 475 MB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008344/0.4515, allocations: 369.4 kB / 475.4 MB, free: 3.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.016e-06/0.4515, allocations: 0 / 475.4 MB, free: 3.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003327/0.4548, allocations: 1.314 MB / 476.7 MB, free: 2.109 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.4549, allocations: 67.34 kB / 476.8 MB, free: 2.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0041/0.459, allocations: 2.813 MB / 479.6 MB, free: 15.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.4591, allocations: 41.69 kB / 479.6 MB, free: 15.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001414/0.4605, allocations: 1.4 MB / 481 MB, free: 13.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002331/0.4608, allocations: 174.6 kB / 481.2 MB, free: 13.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003553/0.4611, allocations: 226.4 kB / 481.4 MB, free: 13.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.4613, allocations: 337.9 kB / 481.7 MB, free: 13.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006262/0.4619, allocations: 237.9 kB / 482 MB, free: 12.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008887/0.4628, allocations: 0.5966 MB / 482.6 MB, free: 12.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.4643, allocations: 0.8841 MB / 483.5 MB, free: 10.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.505e-06/0.4643, allocations: 4 kB / 483.5 MB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00255/0.4669, allocations: 1.281 MB / 484.7 MB, free: 9.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.4669, allocations: 12 kB / 484.8 MB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/0.467, allocations: 83.98 kB / 484.8 MB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006091/0.4676, allocations: 281.1 kB / 485.1 MB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005925/0.4682, allocations: 167.7 kB / 485.3 MB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.4693, allocations: 0.8842 MB / 486.2 MB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.4704, allocations: 107.3 kB / 486.3 MB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.4705, allocations: 68 kB / 486.3 MB, free: 8.051 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0007814/0.4712, allocations: 429.4 kB / 486.8 MB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004499/0.4717, allocations: 381.6 kB / 487.1 MB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002938/0.4746, allocations: 1.279 MB / 488.4 MB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.4746, allocations: 4 kB / 488.4 MB, free: 5.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.4746, allocations: 0 / 488.4 MB, free: 5.945 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.4747, allocations: 3.938 kB / 488.4 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003978/0.4786, allocations: 2.169 MB / 490.6 MB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001082/0.4787, allocations: 68 kB / 490.6 MB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.4791, allocations: 63.88 kB / 490.7 MB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004921/0.4796, allocations: 264.9 kB / 491 MB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.03e-05/0.4796, allocations: 35.98 kB / 491 MB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.4806, allocations: 0.8684 MB / 491.9 MB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4806, allocations: 0 / 491.9 MB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001984/0.4826, allocations: 1.135 MB / 493 MB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009061/0.4835, allocations: 411.2 kB / 493.4 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002993/0.4838, allocations: 16 kB / 493.4 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006695/0.4845, allocations: 35.95 kB / 493.5 MB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.4847, allocations: 59.94 kB / 493.5 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-05/0.4847, allocations: 39.98 kB / 493.6 MB, free: 0.6523 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002668/0.4874, allocations: 1.832 MB / 495.4 MB, free: 14.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4874, allocations: 0 / 495.4 MB, free: 14.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00146/0.4889, allocations: 0.5774 MB / 496 MB, free: 14.24 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003557/0.4924, allocations: 2.371 MB / 498.3 MB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001858/0.4943, allocations: 0.821 MB / 499.2 MB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.4943, allocations: 1 kB / 499.2 MB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009595/0.4952, allocations: 476.1 kB / 499.6 MB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.4972, allocations: 0.5063 MB / 0.4884 GB, free: 9.977 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02611/0.5233, allocations: 16.13 MB / 0.5042 GB, free: 9.277 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.5246, allocations: 1.612 MB / 0.5057 GB, free: 7.637 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001135/0.5257, allocations: 391.1 kB / 0.5061 GB, free: 7.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/0.5271, allocations: 1.132 MB / 0.5072 GB, free: 6.117 MB / 430.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5271, allocations: 0 / 0.5072 GB, free: 6.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2984/0.8255, allocations: 63.52 MB / 0.5692 GB, free: 150.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.51/21.33, allocations: 3.266 kB / 0.5693 GB, free: 150.8 MB / 478.1 MB " [Timeout remaining time 639] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 24.659195116953924]