Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001682/0.001682, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002083/0.002083, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 59.91 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2826, allocations: 53.35 MB / 431.1 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01489/0.2975, allocations: 14.07 MB / 445.2 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02949/0.327, allocations: 20.38 MB / 465.6 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003198/0.3302, allocations: 189.8 kB / 465.8 MB, free: 4.035 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003418/0.3336, allocations: 1.126 MB / 466.9 MB, free: 2.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007652/0.3413, allocations: 2.331 MB / 469.2 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004529/0.3458, allocations: 1.445 MB / 470.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01063/0.3564, allocations: 6.466 MB / 477.1 MB, free: 8.621 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007348/0.3572, allocations: 252.9 kB / 477.4 MB, free: 8.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001856/0.359, allocations: 1.108 MB / 478.5 MB, free: 7.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.3607, allocations: 1.06 MB / 479.6 MB, free: 6.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000194/0.3609, allocations: 68 kB / 479.6 MB, free: 6.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004122/0.365, allocations: 1.471 MB / 481.1 MB, free: 4.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003686/0.3654, allocations: 317.7 kB / 481.4 MB, free: 4.309 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001491/0.3669, allocations: 1.296 MB / 482.7 MB, free: 3.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00545/0.3724, allocations: 3.651 MB / 486.3 MB, free: 15.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3724, allocations: 3.938 kB / 486.4 MB, free: 15.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3724, allocations: 4 kB / 486.4 MB, free: 15.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.626e-05/0.3724, allocations: 0 / 486.4 MB, free: 15.33 MB / 398.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.005631/0.378, allocations: 3.555 MB / 489.9 MB, free: 11.72 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.3781, allocations: 12.03 kB / 489.9 MB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.3782, allocations: 90.52 kB / 490 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005169/0.3787, allocations: 393.5 kB / 490.4 MB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004306/0.383, allocations: 2.351 MB / 492.7 MB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.832e-05/0.3831, allocations: 33 kB / 492.8 MB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.3832, allocations: 51.95 kB / 492.8 MB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.3846, allocations: 0.7031 MB / 493.5 MB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.3846, allocations: 0 / 493.5 MB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.038e-05/0.3847, allocations: 23.98 kB / 493.6 MB, free: 7.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.3847, allocations: 19.98 kB / 493.6 MB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.3863, allocations: 0.789 MB / 494.4 MB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005253/0.3915, allocations: 2.828 MB / 497.2 MB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.3928, allocations: 0.5597 MB / 497.7 MB, free: 3.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009988/0.3938, allocations: 0.5895 MB / 498.3 MB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02617/0.4199, allocations: 13.76 MB / 0.5001 GB, free: 4.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007908/0.4207, allocations: 365.5 kB / 0.5004 GB, free: 4.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.236e-06/0.4207, allocations: 0 / 0.5004 GB, free: 4.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003251/0.424, allocations: 1.322 MB / 0.5017 GB, free: 3.254 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.424, allocations: 55.41 kB / 0.5018 GB, free: 3.188 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/0.4276, allocations: 2.796 MB / 0.5045 GB, free: 380 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.318e-05/0.4277, allocations: 37.7 kB / 0.5046 GB, free: 336 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/0.429, allocations: 1.396 MB / 0.5059 GB, free: 14.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.4292, allocations: 178.6 kB / 0.5061 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003062/0.4295, allocations: 222.4 kB / 0.5063 GB, free: 14.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.4297, allocations: 337.9 kB / 0.5066 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006084/0.4303, allocations: 237.9 kB / 0.5069 GB, free: 13.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008639/0.4311, allocations: 0.5965 MB / 0.5074 GB, free: 13.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.4326, allocations: 0.8841 MB / 0.5083 GB, free: 12.14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.4326, allocations: 4 kB / 0.5083 GB, free: 12.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002356/0.435, allocations: 1.281 MB / 0.5096 GB, free: 10.85 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.435, allocations: 12 kB / 0.5096 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.4351, allocations: 80 kB / 0.5096 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005899/0.4357, allocations: 278.9 kB / 0.5099 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005929/0.4363, allocations: 171.6 kB / 0.5101 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.4373, allocations: 0.8819 MB / 0.5109 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009856/0.4383, allocations: 119.2 kB / 0.511 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.4384, allocations: 63.98 kB / 0.5111 GB, free: 9.23 MB / 430.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.0007394/0.4392, allocations: 425.4 kB / 0.5115 GB, free: 8.805 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003788/0.4395, allocations: 381.7 kB / 0.5119 GB, free: 8.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002787/0.4423, allocations: 1.255 MB / 0.5131 GB, free: 7.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.4423, allocations: 4 kB / 0.5131 GB, free: 7.156 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.4423, allocations: 0 / 0.5131 GB, free: 7.156 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.4424, allocations: 11.92 kB / 0.5131 GB, free: 7.145 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003773/0.4461, allocations: 2.153 MB / 0.5152 GB, free: 4.918 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000105/0.4462, allocations: 76.06 kB / 0.5153 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.4466, allocations: 63.94 kB / 0.5154 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004841/0.447, allocations: 258.2 kB / 0.5156 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.586e-05/0.4471, allocations: 39.98 kB / 0.5156 GB, free: 4.488 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009581/0.4481, allocations: 0.853 MB / 0.5165 GB, free: 3.609 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4481, allocations: 0 / 0.5165 GB, free: 3.609 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.4501, allocations: 1.143 MB / 0.5176 GB, free: 2.426 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008809/0.4509, allocations: 415.2 kB / 0.518 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003578/0.4513, allocations: 16 kB / 0.518 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007358/0.452, allocations: 31.95 kB / 0.518 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.4522, allocations: 67.88 kB / 0.5181 GB, free: 1.902 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.827e-05/0.4523, allocations: 39.98 kB / 0.5181 GB, free: 1.863 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002834/0.4551, allocations: 1.82 MB / 0.5199 GB, free: 40 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4551, allocations: 0 / 0.5199 GB, free: 40 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001477/0.4566, allocations: 0.5697 MB / 0.5205 GB, free: 15.47 MB / 446.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.003666/0.4602, allocations: 2.363 MB / 0.5228 GB, free: 13.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.4622, allocations: 0.8264 MB / 0.5236 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4622, allocations: 0 / 0.5236 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009668/0.4632, allocations: 472.3 kB / 0.524 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.4658, allocations: 0.5979 MB / 0.5246 GB, free: 11.13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2326/0.6984, allocations: 16.02 MB / 0.5403 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/0.6996, allocations: 1.6 MB / 0.5418 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.7006, allocations: 390 kB / 0.5422 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008727/0.7015, allocations: 1.126 MB / 0.5433 GB, free: 101.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7015, allocations: 0 / 0.5433 GB, free: 101.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09649/0.798, allocations: 63.17 MB / 0.605 GB, free: 44.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.04/20.84, allocations: 11.52 kB / 0.605 GB, free: 44.01 MB / 446.1 MB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.20307686389424]