Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 108.2 kB / 19.04 MB, free: 3.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 200.4 kB / 22.22 MB, free: 64 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 51.92 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2242, allocations: 52.14 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01463/0.2388, allocations: 14.25 MB / 435.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02577/0.2646, allocations: 20.38 MB / 455.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.2668, allocations: 126.9 kB / 455.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00332/0.2701, allocations: 1.129 MB / 456.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007487/0.2776, allocations: 2.326 MB / 459.1 MB, free: 8.734 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004631/0.2822, allocations: 1.448 MB / 460.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01033/0.2926, allocations: 6.441 MB / 467 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007388/0.2933, allocations: 248.5 kB / 467.2 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00192/0.2952, allocations: 1.1 MB / 468.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001285/0.2965, allocations: 1.079 MB / 469.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001634/0.2967, allocations: 76 kB / 469.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003854/0.3005, allocations: 1.483 MB / 470.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003319/0.3009, allocations: 325.6 kB / 471.3 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001333/0.3022, allocations: 1.327 MB / 472.6 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004977/0.3072, allocations: 3.69 MB / 476.3 MB, free: 7.426 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.3072, allocations: 0 / 476.3 MB, free: 7.426 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3072, allocations: 0 / 476.3 MB, free: 7.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.129e-05/0.3072, allocations: 3.938 kB / 476.3 MB, free: 7.422 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.005356/0.3126, allocations: 3.685 MB / 480 MB, free: 3.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3126, allocations: 12.03 kB / 480 MB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000415/0.313, allocations: 397.5 kB / 480.4 MB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003646/0.3167, allocations: 2.555 MB / 482.9 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.3167, allocations: 36.98 kB / 483 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.3169, allocations: 51.95 kB / 483 MB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.3184, allocations: 0.7577 MB / 483.8 MB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.3184, allocations: 0 / 483.8 MB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.589e-05/0.3185, allocations: 23.94 kB / 483.8 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.3185, allocations: 19.98 kB / 483.8 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/0.3204, allocations: 0.8592 MB / 484.7 MB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005149/0.3256, allocations: 2.967 MB / 487.6 MB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.3273, allocations: 0.7207 MB / 488.4 MB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/0.3288, allocations: 0.8629 MB / 489.2 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03319/0.362, allocations: 30.07 MB / 0.5071 GB, free: 8.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001235/0.3632, allocations: 0.5918 MB / 0.5077 GB, free: 7.469 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.705e-06/0.3632, allocations: 0 / 0.5077 GB, free: 7.469 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.0124/0.3756, allocations: 5.278 MB / 0.5128 GB, free: 1.941 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.3757, allocations: 68.39 kB / 0.5129 GB, free: 1.863 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003391/0.3791, allocations: 2.7 MB / 0.5155 GB, free: 15.15 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.978e-05/0.3792, allocations: 41.7 kB / 0.5156 GB, free: 15.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.3804, allocations: 1.304 MB / 0.5169 GB, free: 13.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000315/0.3807, allocations: 353 kB / 0.5172 GB, free: 13.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000386/0.3811, allocations: 230.5 kB / 0.5174 GB, free: 13.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3813, allocations: 345.9 kB / 0.5177 GB, free: 12.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.3825, allocations: 478 kB / 0.5182 GB, free: 12.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.3839, allocations: 0.647 MB / 0.5188 GB, free: 11.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002534/0.3864, allocations: 1.133 MB / 0.5199 GB, free: 10.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.3864, allocations: 8 kB / 0.5199 GB, free: 10.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004104/0.3905, allocations: 1.981 MB / 0.5219 GB, free: 8.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3906, allocations: 14.91 kB / 0.5219 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001739/0.3907, allocations: 124 kB / 0.522 GB, free: 8.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007502/0.3915, allocations: 268.8 kB / 0.5223 GB, free: 8.004 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008849/0.3924, allocations: 199.6 kB / 0.5225 GB, free: 7.809 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/0.4035, allocations: 14.23 MB / 0.5364 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.405, allocations: 91.95 kB / 0.5364 GB, free: 8.094 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.4052, allocations: 63.98 kB / 0.5365 GB, free: 8.031 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008828/0.4061, allocations: 425.5 kB / 0.5369 GB, free: 7.605 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004749/0.4065, allocations: 393.5 kB / 0.5373 GB, free: 7.219 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004947/0.4115, allocations: 2.21 MB / 0.5394 GB, free: 4.926 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.4115, allocations: 8 kB / 0.5395 GB, free: 4.918 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.4115, allocations: 4 kB / 0.5395 GB, free: 4.914 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.4115, allocations: 3.984 kB / 0.5395 GB, free: 4.91 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.4136, allocations: 1.547 MB / 0.541 GB, free: 3.312 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001618/0.4138, allocations: 116 kB / 0.5411 GB, free: 3.199 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007191/0.4145, allocations: 135.8 kB / 0.5412 GB, free: 3.066 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007091/0.4152, allocations: 272.3 kB / 0.5415 GB, free: 2.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.98e-05/0.4153, allocations: 43.98 kB / 0.5415 GB, free: 2.727 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2043/0.6195, allocations: 14.23 MB / 0.5554 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6195, allocations: 5.062 kB / 0.5554 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005062/0.6246, allocations: 2.558 MB / 0.5579 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008019/0.6254, allocations: 0.5089 MB / 0.5584 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003134/0.6257, allocations: 17.25 kB / 0.5584 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000928/0.6267, allocations: 83.52 kB / 0.5585 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004445/0.6271, allocations: 141.8 kB / 0.5586 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.6272, allocations: 55.73 kB / 0.5587 GB, free: 114.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002139/0.6293, allocations: 1.775 MB / 0.5604 GB, free: 114.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6293, allocations: 0 / 0.5604 GB, free: 114.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001505/0.6309, allocations: 0.6499 MB / 0.5611 GB, free: 114 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001147/0.632, allocations: 0.8041 MB / 0.5618 GB, free: 113.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00339/0.6354, allocations: 2.447 MB / 0.5642 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6354, allocations: 0 / 0.5642 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001945/0.6373, allocations: 1.912 MB / 0.5661 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/0.6395, allocations: 0.6099 MB / 0.5667 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005467/0.6449, allocations: 4.771 MB / 0.5714 GB, free: 107.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007078/0.6456, allocations: 1.664 MB / 0.573 GB, free: 106.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001055/0.6467, allocations: 387.4 kB / 0.5734 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002539/0.6469, allocations: 167.4 kB / 0.5735 GB, free: 105.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6469, allocations: 11.94 kB / 0.5735 GB, free: 105.5 MB / 462.1 MB Notification: Performance of Templates: time 0.05317/0.7001, allocations: 37.77 MB / 0.6104 GB, free: 68.07 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.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: 6.007033506408334]