Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001351/0.001351, allocations: 109.1 kB / 21.18 MB, free: 0.7656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, allocations: 213.1 kB / 24.5 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 63.89 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2557, allocations: 53.4 MB / 432.4 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01511/0.2708, allocations: 14.25 MB / 446.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02663/0.2975, allocations: 20.42 MB / 467.1 MB, free: 3.949 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002989/0.3005, allocations: 193.8 kB / 467.3 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003546/0.304, allocations: 1.127 MB / 468.4 MB, free: 2.629 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008508/0.3125, allocations: 2.339 MB / 470.8 MB, free: 276 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005396/0.3179, allocations: 1.461 MB / 472.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01151/0.3294, allocations: 6.548 MB / 478.8 MB, free: 8.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007844/0.3302, allocations: 249 kB / 479 MB, free: 7.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001854/0.3321, allocations: 1.136 MB / 480.1 MB, free: 6.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001724/0.3338, allocations: 1.087 MB / 481.2 MB, free: 5.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002375/0.334, allocations: 76 kB / 481.3 MB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004284/0.3383, allocations: 1.479 MB / 482.8 MB, free: 4.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004829/0.3388, allocations: 325.7 kB / 483.1 MB, free: 3.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.3406, allocations: 1.324 MB / 484.4 MB, free: 2.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006817/0.3474, allocations: 3.702 MB / 488.1 MB, free: 14.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.156e-05/0.3474, allocations: 3.984 kB / 488.1 MB, free: 14.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3474, allocations: 0 / 488.1 MB, free: 14.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.46e-05/0.3475, allocations: 0 / 488.1 MB, free: 14.79 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.006256/0.3537, allocations: 3.61 MB / 491.7 MB, free: 11.13 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.3538, allocations: 12.03 kB / 491.7 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005343/0.3543, allocations: 397.5 kB / 492.1 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00441/0.3587, allocations: 2.382 MB / 494.5 MB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.3588, allocations: 33 kB / 494.6 MB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.3589, allocations: 51.98 kB / 494.6 MB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.3606, allocations: 0.7655 MB / 495.4 MB, free: 7.391 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.3606, allocations: 3.938 kB / 495.4 MB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.03e-05/0.3606, allocations: 16 kB / 495.4 MB, free: 7.371 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.9e-05/0.3607, allocations: 23.92 kB / 495.4 MB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.3625, allocations: 0.8553 MB / 496.3 MB, free: 6.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00664/0.3692, allocations: 2.918 MB / 499.2 MB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.3709, allocations: 0.7324 MB / 499.9 MB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.3725, allocations: 0.8627 MB / 0.489 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02728/0.3997, allocations: 13.77 MB / 0.5025 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/0.401, allocations: 0.5879 MB / 0.5031 GB, free: 3.164 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.795e-06/0.401, allocations: 4 kB / 0.5031 GB, free: 3.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01227/0.4133, allocations: 4.521 MB / 0.5075 GB, free: 14.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/0.4133, allocations: 72.39 kB / 0.5075 GB, free: 14.49 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003634/0.417, allocations: 2.688 MB / 0.5102 GB, free: 11.79 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001773/0.4171, allocations: 53.62 kB / 0.5102 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/0.4184, allocations: 1.3 MB / 0.5115 GB, free: 10.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004256/0.4188, allocations: 349.1 kB / 0.5118 GB, free: 10.08 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003935/0.4192, allocations: 234.4 kB / 0.5121 GB, free: 9.848 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4194, allocations: 353.9 kB / 0.5124 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.4207, allocations: 470 kB / 0.5128 GB, free: 9.039 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.4221, allocations: 0.6509 MB / 0.5135 GB, free: 8.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0026/0.4247, allocations: 1.133 MB / 0.5146 GB, free: 7.121 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.4247, allocations: 0 / 0.5146 GB, free: 7.121 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004314/0.429, allocations: 1.834 MB / 0.5164 GB, free: 5.246 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/0.429, allocations: 14.44 kB / 0.5164 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000207/0.4293, allocations: 116 kB / 0.5165 GB, free: 5.121 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007319/0.43, allocations: 272.9 kB / 0.5168 GB, free: 4.824 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008929/0.4309, allocations: 187.7 kB / 0.5169 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.4415, allocations: 13.23 MB / 0.5299 GB, free: 6.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.4432, allocations: 91.95 kB / 0.5299 GB, free: 6.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001988/0.4434, allocations: 56.19 kB / 0.53 GB, free: 6.125 MB / 446.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.0009148/0.4443, allocations: 439.8 kB / 0.5304 GB, free: 5.691 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005883/0.4449, allocations: 389.5 kB / 0.5308 GB, free: 5.309 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004913/0.4498, allocations: 2.056 MB / 0.5328 GB, free: 3.215 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.4498, allocations: 8 kB / 0.5328 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.4498, allocations: 4 kB / 0.5328 GB, free: 3.203 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.4498, allocations: 7.922 kB / 0.5328 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002271/0.4521, allocations: 1.515 MB / 0.5343 GB, free: 1.633 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001657/0.4522, allocations: 120 kB / 0.5344 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000726/0.453, allocations: 131.8 kB / 0.5345 GB, free: 1.387 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006817/0.4536, allocations: 264.3 kB / 0.5348 GB, free: 1.098 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.464e-05/0.4537, allocations: 47.97 kB / 0.5348 GB, free: 1.051 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2264/0.6801, allocations: 13.21 MB / 0.5477 GB, free: 91.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.6801, allocations: 1.844 kB / 0.5477 GB, free: 91.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007609/0.6877, allocations: 2.408 MB / 0.5501 GB, free: 90.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/0.6894, allocations: 440.2 kB / 0.5505 GB, free: 90.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006522/0.69, allocations: 17.33 kB / 0.5505 GB, free: 90.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/0.6917, allocations: 79.28 kB / 0.5506 GB, free: 90.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005897/0.6923, allocations: 147.8 kB / 0.5507 GB, free: 90.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/0.6925, allocations: 47.78 kB / 0.5508 GB, free: 90.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004242/0.6967, allocations: 1.77 MB / 0.5525 GB, free: 90.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 4e-07/0.6967, allocations: 0 / 0.5525 GB, free: 90.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003148/0.6999, allocations: 0.6546 MB / 0.5532 GB, free: 90.11 MB / 446.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.001657/0.7015, allocations: 0.8141 MB / 0.5539 GB, free: 89.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005167/0.7067, allocations: 2.453 MB / 0.5563 GB, free: 88.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.7067, allocations: 3.938 kB / 0.5563 GB, free: 88.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003333/0.71, allocations: 1.892 MB / 0.5582 GB, free: 86.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004282/0.7143, allocations: 0.6232 MB / 0.5588 GB, free: 86.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/0.7258, allocations: 4.825 MB / 0.5635 GB, free: 84.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001524/0.7273, allocations: 1.656 MB / 0.5651 GB, free: 82.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006577/0.728, allocations: 174.7 kB / 0.5653 GB, free: 82.68 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.728, allocations: 0 / 0.5653 GB, free: 82.68 MB / 446.1 MB Notification: Performance of Templates: time 0.2394/0.9674, allocations: 154.4 MB / 0.716 GB, free: 8.258 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 14.474266272038221]