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.001841/0.001841, allocations: 80.67 kB / 20.68 MB, free: 1.035 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.002232/0.002232, allocations: 154.9 kB / 23.94 MB, free: 4.176 MB / 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.489/1.489, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.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 1.322e-06/1.322e-06, allocations: 0 / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/1.934e-05, allocations: 7.188 kB / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01122/0.01124, allocations: 11.96 MB / 330.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0239/0.03515, allocations: 17.56 MB / 348.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002968/0.03812, allocations: 189.8 kB / 348.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003352/0.04147, allocations: 1.032 MB / 349.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00827/0.04974, allocations: 2.397 MB / 352.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004877/0.05461, allocations: 1.449 MB / 353.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01183/0.06645, allocations: 6.62 MB / 360.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000795/0.06724, allocations: 249 kB / 360.4 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002575/0.06982, allocations: 1.539 MB / 361.9 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.0711, allocations: 0.7784 MB / 362.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002111/0.07131, allocations: 76 kB / 362.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003689/0.075, allocations: 1.21 MB / 364 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003404/0.07534, allocations: 321.7 kB / 364.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.07645, allocations: 0.7203 MB / 365 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004799/0.08125, allocations: 3.686 MB / 368.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.08126, allocations: 3.984 kB / 368.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.08126, allocations: 3.938 kB / 368.7 MB, free: 9.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.01e-05/0.08129, allocations: 0 / 368.7 MB, free: 9.73 MB / 334.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.005267/0.08656, allocations: 3.563 MB / 372.3 MB, free: 6.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.0866, allocations: 12.92 kB / 372.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004451/0.08704, allocations: 397.5 kB / 372.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003734/0.09077, allocations: 2.375 MB / 375 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.133e-05/0.09082, allocations: 40.94 kB / 375.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.09095, allocations: 51.89 kB / 375.1 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.09258, allocations: 0.7577 MB / 375.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.0926, allocations: 4 kB / 375.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.09268, allocations: 23.98 kB / 375.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.09271, allocations: 19.98 kB / 375.9 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.09469, allocations: 0.8553 MB / 376.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004902/0.09959, allocations: 2.659 MB / 379.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001899/0.1015, allocations: 0.7325 MB / 380.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.1032, allocations: 0.868 MB / 381 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02691/0.1301, allocations: 13.63 MB / 394.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/0.1314, allocations: 0.588 MB / 395.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.096e-06/0.1314, allocations: 4 kB / 395.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01323/0.1447, allocations: 4.529 MB / 399.8 MB, free: 9.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.443e-05/0.1447, allocations: 68.39 kB / 399.9 MB, free: 9.871 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003694/0.1484, allocations: 2.7 MB / 402.6 MB, free: 7.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.1485, allocations: 45.7 kB / 402.6 MB, free: 7.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.1498, allocations: 1.304 MB / 403.9 MB, free: 5.797 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000335/0.1502, allocations: 353 kB / 404.3 MB, free: 5.449 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00039/0.1506, allocations: 230.4 kB / 404.5 MB, free: 5.219 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.1507, allocations: 349.9 kB / 404.8 MB, free: 4.871 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001394/0.1521, allocations: 470 kB / 405.3 MB, free: 4.414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.1536, allocations: 0.6509 MB / 405.9 MB, free: 3.695 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00289/0.1565, allocations: 1.126 MB / 407.1 MB, free: 2.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1565, allocations: 0 / 407.1 MB, free: 2.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004547/0.1611, allocations: 1.839 MB / 408.9 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.1611, allocations: 4 kB / 408.9 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000173/0.1613, allocations: 120 kB / 409 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007599/0.162, allocations: 272.6 kB / 409.3 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009713/0.163, allocations: 195.7 kB / 409.5 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/0.1738, allocations: 12.96 MB / 422.4 MB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.1753, allocations: 92.08 kB / 422.5 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.1754, allocations: 60 kB / 422.6 MB, free: 1.895 MB / 382.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.0009746/0.1764, allocations: 430 kB / 423 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006652/0.1771, allocations: 393.5 kB / 423.4 MB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005504/0.1826, allocations: 2.052 MB / 425.4 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.1826, allocations: 12 kB / 425.5 MB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.1826, allocations: 12 kB / 425.5 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.1826, allocations: 3.984 kB / 425.5 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.1846, allocations: 1.293 MB / 426.8 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001612/0.1848, allocations: 119.9 kB / 426.9 MB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007935/0.1856, allocations: 135.8 kB / 427 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007214/0.1863, allocations: 260.3 kB / 427.3 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.1864, allocations: 51.92 kB / 427.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/0.1969, allocations: 12.97 MB / 440.3 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1969, allocations: 4.188 kB / 440.3 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005972/0.2029, allocations: 2.395 MB / 442.7 MB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009926/0.2038, allocations: 443.3 kB / 443.1 MB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004192/0.2043, allocations: 16 kB / 443.1 MB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.2054, allocations: 83.89 kB / 443.2 MB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003687/0.2057, allocations: 144.7 kB / 443.4 MB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.2058, allocations: 51.98 kB / 443.4 MB, free: 11.87 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002557/0.2084, allocations: 1.77 MB / 445.2 MB, free: 10.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2084, allocations: 0 / 445.2 MB, free: 10.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001572/0.21, allocations: 0.6479 MB / 445.8 MB, free: 9.441 MB / 414.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.001426/0.2114, allocations: 0.8721 MB / 446.7 MB, free: 8.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00466/0.2161, allocations: 2.456 MB / 449.2 MB, free: 5.957 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2161, allocations: 0 / 449.2 MB, free: 5.957 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002982/0.219, allocations: 1.898 MB / 451.1 MB, free: 3.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/0.2218, allocations: 0.6103 MB / 451.7 MB, free: 3.293 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007194/0.229, allocations: 4.547 MB / 456.2 MB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.2301, allocations: 1.104 MB / 457.3 MB, free: 13.56 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00116/0.2313, allocations: 391.4 kB / 457.7 MB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/0.2316, allocations: 168.5 kB / 457.9 MB, free: 13.01 MB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2316, allocations: 0 / 457.9 MB, free: 13.01 MB / 430.1 MB Notification: Performance of Templates: time 0.2031/0.4347, allocations: 38.85 MB / 496.7 MB, free: 122.8 MB / 430.1 MB " [Timeout remaining time 660] 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.142411198467016]