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.001278/0.001278, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001348/0.001348, allocations: 147.1 kB / 24.89 MB, free: 8.785 MB / 18.57 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 0.9035/0.9035, allocations: 173.4 MB / 201.5 MB, free: 8.258 MB / 186.7 MB " [Timeout remaining time 179] 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.222e-06/1.222e-06, allocations: 0 / 268.5 MB, free: 9.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.562e-05/1.684e-05, allocations: 2.312 kB / 268.5 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008825/0.008842, allocations: 13.21 MB / 281.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.02676, allocations: 19.42 MB / 301.1 MB, free: 9.102 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001658/0.02842, allocations: 189.8 kB / 301.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001794/0.03021, allocations: 1.072 MB / 302.3 MB, free: 7.832 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00459/0.0348, allocations: 2.426 MB / 304.8 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002953/0.03776, allocations: 1.462 MB / 306.2 MB, free: 3.918 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005927/0.04368, allocations: 6.703 MB / 312.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003932/0.04408, allocations: 281.7 kB / 313.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002563/0.04664, allocations: 2.931 MB / 316.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006897/0.04733, allocations: 0.8136 MB / 317 MB, free: 9.117 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.749e-05/0.04743, allocations: 76 kB / 317 MB, free: 9.043 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002066/0.04949, allocations: 1.21 MB / 318.2 MB, free: 7.832 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.04969, allocations: 333.7 kB / 318.6 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005527/0.05024, allocations: 0.7204 MB / 319.3 MB, free: 6.781 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002378/0.05262, allocations: 2.755 MB / 322 MB, free: 4.016 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.05262, allocations: 0 / 322 MB, free: 4.016 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.05262, allocations: 0 / 322 MB, free: 4.016 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.05264, allocations: 3.938 kB / 322 MB, free: 4.012 MB / 298.7 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.002829/0.05547, allocations: 3.541 MB / 325.6 MB, free: 432 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.05551, allocations: 12.03 kB / 325.6 MB, free: 420 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.05573, allocations: 275.6 kB / 325.9 MB, free: 144 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.05763, allocations: 2.106 MB / 328 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.05766, allocations: 33 kB / 328 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.204e-05/0.05774, allocations: 63.86 kB / 328.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.05826, allocations: 479.4 kB / 328.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.05828, allocations: 0 / 328.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.177e-05/0.05832, allocations: 20 kB / 328.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.05833, allocations: 27.98 kB / 328.6 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003261/0.05866, allocations: 215.8 kB / 328.8 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002116/0.06078, allocations: 1.446 MB / 330.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004299/0.06121, allocations: 388.8 kB / 330.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004466/0.06165, allocations: 0.517 MB / 331.1 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1292/0.1909, allocations: 22.83 MB / 354 MB, free: 61.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003445/0.1912, allocations: 354.1 kB / 354.3 MB, free: 61.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.826e-06/0.1912, allocations: 0 / 354.3 MB, free: 61.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003436/0.1947, allocations: 2.233 MB / 356.5 MB, free: 59.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.1947, allocations: 71.75 kB / 356.6 MB, free: 59.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.1958, allocations: 2.423 MB / 359 MB, free: 58.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.1958, allocations: 48.7 kB / 359.1 MB, free: 58.37 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.1961, allocations: 0.591 MB / 359.7 MB, free: 58.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.1962, allocations: 353.2 kB / 360 MB, free: 57.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.1964, allocations: 194.1 kB / 360.2 MB, free: 57.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.148e-05/0.1964, allocations: 352.4 kB / 360.6 MB, free: 57.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.1966, allocations: 118.1 kB / 360.7 MB, free: 57.44 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.1968, allocations: 304.1 kB / 361 MB, free: 57.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.1971, allocations: 0.5136 MB / 361.5 MB, free: 56.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1971, allocations: 3.812 kB / 361.5 MB, free: 56.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0007976/0.1979, allocations: 0.8864 MB / 362.4 MB, free: 55.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.198, allocations: 4 kB / 362.4 MB, free: 55.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.208e-05/0.198, allocations: 19.31 kB / 362.4 MB, free: 55.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003118/0.1983, allocations: 216.6 kB / 362.6 MB, free: 55.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003401/0.1987, allocations: 185.6 kB / 362.8 MB, free: 55.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002803/0.2015, allocations: 11.81 MB / 374.6 MB, free: 43.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004526/0.2019, allocations: 63.89 kB / 374.7 MB, free: 42.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.836e-05/0.202, allocations: 35.69 kB / 374.7 MB, free: 42.96 MB / 314.7 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.0002559/0.2022, allocations: 175 kB / 374.9 MB, free: 42.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.2024, allocations: 251.7 kB / 375.1 MB, free: 42.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.2036, allocations: 1.194 MB / 376.3 MB, free: 41.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.2036, allocations: 8 kB / 376.3 MB, free: 41.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2036, allocations: 4 kB / 376.3 MB, free: 41.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2036, allocations: 3.984 kB / 376.3 MB, free: 41.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006287/0.2043, allocations: 0.8789 MB / 377.2 MB, free: 40.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.453e-05/0.2043, allocations: 16 kB / 377.2 MB, free: 40.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002326/0.2045, allocations: 112.2 kB / 377.3 MB, free: 40.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002791/0.2048, allocations: 221 kB / 377.5 MB, free: 40.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.246e-05/0.2049, allocations: 23.98 kB / 377.6 MB, free: 40.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002631/0.2075, allocations: 11.82 MB / 389.4 MB, free: 27.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2075, allocations: 0 / 389.4 MB, free: 27.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009475/0.2084, allocations: 1.043 MB / 390.4 MB, free: 26.65 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/0.2088, allocations: 381.4 kB / 390.8 MB, free: 26.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/0.209, allocations: 23.28 kB / 390.8 MB, free: 26.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000374/0.2093, allocations: 55.94 kB / 390.9 MB, free: 26.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.2095, allocations: 119.8 kB / 391 MB, free: 26.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.165e-05/0.2096, allocations: 19.98 kB / 391 MB, free: 26.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006086/0.2102, allocations: 1.3 MB / 392.3 MB, free: 24.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2102, allocations: 0 / 392.3 MB, free: 24.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008963/0.2111, allocations: 0.6635 MB / 393 MB, free: 24.26 MB / 314.7 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.0007985/0.2119, allocations: 0.973 MB / 393.9 MB, free: 23.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009276/0.2128, allocations: 1.733 MB / 395.7 MB, free: 21.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.011e-05/0.2128, allocations: 36 kB / 395.7 MB, free: 21.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005875/0.2134, allocations: 1.513 MB / 397.2 MB, free: 19.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.2145, allocations: 0.6339 MB / 397.9 MB, free: 19.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/0.2176, allocations: 4.119 MB / 402 MB, free: 15.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.2179, allocations: 412.9 kB / 402.4 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006026/0.2185, allocations: 387.4 kB / 402.8 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007376/0.2192, allocations: 0.6045 MB / 403.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of SimCode: time 1.172e-06/0.2192, allocations: 0 / 403.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of Templates: time 0.04821/0.2674, allocations: 44.21 MB / 447.6 MB, free: 2.199 MB / 346.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.79619373800233]