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.001728/0.001728, allocations: 112.2 kB / 21.94 MB, free: 12 kB / 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.002127/0.002127, allocations: 200.8 kB / 25.23 MB, free: 3.539 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.445/1.445, allocations: 207.6 MB / 236 MB, free: 9.984 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: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [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.001787/0.001787, allocations: 54.58 kB / 348.4 MB, free: 9.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2524, allocations: 49.17 MB / 397.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01137/0.2638, allocations: 13.42 MB / 411 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02794/0.2917, allocations: 19.4 MB / 430.4 MB, free: 364 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003592/0.2953, allocations: 196.3 kB / 430.6 MB, free: 220 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003769/0.2991, allocations: 1.104 MB / 431.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009053/0.3082, allocations: 2.275 MB / 434 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005224/0.3134, allocations: 1.399 MB / 435.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.3254, allocations: 6.261 MB / 441.6 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007461/0.3262, allocations: 249 kB / 441.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.3282, allocations: 1.015 MB / 442.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001869/0.33, allocations: 1.029 MB / 443.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002306/0.3302, allocations: 71.94 kB / 444 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004693/0.3349, allocations: 1.163 MB / 445.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005376/0.3355, allocations: 305.7 kB / 445.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001997/0.3375, allocations: 1.308 MB / 446.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007808/0.3453, allocations: 3.675 MB / 450.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3453, allocations: 0 / 450.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.3453, allocations: 3.984 kB / 450.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.535e-05/0.3454, allocations: 0 / 450.4 MB, free: 14.32 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.006164/0.3515, allocations: 3.582 MB / 454 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3516, allocations: 15.98 kB / 454 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005251/0.3521, allocations: 393.6 kB / 454.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004292/0.3564, allocations: 2.375 MB / 456.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.939e-05/0.3564, allocations: 36.94 kB / 456.8 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.3566, allocations: 51.94 kB / 456.9 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.358, allocations: 0.7031 MB / 457.6 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.358, allocations: 8 kB / 457.6 MB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.899e-05/0.3581, allocations: 19.98 kB / 457.6 MB, free: 6.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/0.3581, allocations: 19.98 kB / 457.6 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.3598, allocations: 0.7889 MB / 458.4 MB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005656/0.3654, allocations: 2.844 MB / 461.3 MB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.3667, allocations: 0.5673 MB / 461.8 MB, free: 2.699 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.3678, allocations: 0.585 MB / 462.4 MB, free: 2.113 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02698/0.3947, allocations: 13.77 MB / 476.2 MB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007845/0.3955, allocations: 361.5 kB / 476.5 MB, free: 3.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.3955, allocations: 0 / 476.5 MB, free: 3.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003362/0.3989, allocations: 1.322 MB / 477.9 MB, free: 2.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.3989, allocations: 67.28 kB / 477.9 MB, free: 2.172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003793/0.4027, allocations: 2.816 MB / 480.8 MB, free: 15.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.469e-05/0.4028, allocations: 33.7 kB / 480.8 MB, free: 15.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.4042, allocations: 1.404 MB / 482.2 MB, free: 13.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.4044, allocations: 174.6 kB / 482.4 MB, free: 13.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003207/0.4047, allocations: 222.4 kB / 482.6 MB, free: 13.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.4049, allocations: 345.9 kB / 482.9 MB, free: 13.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006266/0.4055, allocations: 237.9 kB / 483.1 MB, free: 12.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000888/0.4064, allocations: 0.5888 MB / 483.7 MB, free: 12.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001621/0.408, allocations: 0.8802 MB / 484.6 MB, free: 11.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.408, allocations: 8 kB / 484.6 MB, free: 11.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002528/0.4106, allocations: 1.281 MB / 485.9 MB, free: 9.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.4106, allocations: 16.22 kB / 485.9 MB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/0.4107, allocations: 80 kB / 486 MB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005844/0.4113, allocations: 284.6 kB / 486.3 MB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005706/0.4118, allocations: 163.7 kB / 486.4 MB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.4129, allocations: 0.8842 MB / 487.3 MB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.414, allocations: 115.2 kB / 487.4 MB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.4141, allocations: 68.06 kB / 487.5 MB, free: 8.188 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.000778/0.4149, allocations: 413.6 kB / 487.9 MB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004613/0.4154, allocations: 385.5 kB / 488.3 MB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002897/0.4183, allocations: 1.279 MB / 489.6 MB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.4183, allocations: 4 kB / 489.6 MB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4183, allocations: 0 / 489.6 MB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4183, allocations: 0 / 489.6 MB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004075/0.4224, allocations: 2.165 MB / 491.7 MB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001105/0.4225, allocations: 71.94 kB / 491.8 MB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003145/0.4228, allocations: 68 kB / 491.9 MB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005128/0.4233, allocations: 264.8 kB / 492.1 MB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.4234, allocations: 28 kB / 492.2 MB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.4244, allocations: 0.8724 MB / 493 MB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4244, allocations: 0 / 493 MB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/0.4265, allocations: 1.143 MB / 494.2 MB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000909/0.4274, allocations: 411.2 kB / 494.6 MB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.4277, allocations: 12 kB / 494.6 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/0.4284, allocations: 35.95 kB / 494.6 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.4285, allocations: 67.92 kB / 494.7 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.86e-05/0.4286, allocations: 39.98 kB / 494.7 MB, free: 0.793 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00282/0.4314, allocations: 1.828 MB / 496.5 MB, free: 14.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4314, allocations: 0 / 496.5 MB, free: 14.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001495/0.4329, allocations: 0.5774 MB / 497.1 MB, free: 14.38 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.001247/0.4342, allocations: 0.777 MB / 497.9 MB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.4361, allocations: 0.8176 MB / 498.7 MB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4361, allocations: 0 / 498.7 MB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009446/0.437, allocations: 476.5 kB / 499.2 MB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.4389, allocations: 0.5055 MB / 499.7 MB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006514/0.4455, allocations: 4.063 MB / 0.4919 GB, free: 7.633 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.4467, allocations: 1.604 MB / 0.4935 GB, free: 6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003874/0.4471, allocations: 171.4 kB / 0.4937 GB, free: 5.832 MB / 414.1 MB Notification: Performance of SimCode: time 1.653e-06/0.4471, allocations: 3.938 kB / 0.4937 GB, free: 5.828 MB / 414.1 MB Notification: Performance of Templates: time 0.06822/0.5153, allocations: 48.39 MB / 0.5409 GB, free: 5.352 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.525911006843671]