Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.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.0009387/0.0009387, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.0009892/0.0009892, allocations: 162.6 kB / 24.99 MB, free: 8.336 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8997/0.8997, allocations: 177.1 MB / 205.3 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.178e-05/2.32e-05, allocations: 2.312 kB / 273.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009967/0.00999, allocations: 13.52 MB / 286.6 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1229/0.1329, allocations: 19.39 MB / 306 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.1345, allocations: 191.8 kB / 306.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002047/0.1366, allocations: 1.034 MB / 307.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005055/0.1416, allocations: 2.403 MB / 309.6 MB, free: 8.863 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.1451, allocations: 1.445 MB / 311 MB, free: 7.965 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006219/0.1514, allocations: 6.71 MB / 317.7 MB, free: 4.664 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005475/0.1519, allocations: 243 kB / 318 MB, free: 4.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.1536, allocations: 1.536 MB / 319.5 MB, free: 3.285 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007798/0.1543, allocations: 0.7862 MB / 320.3 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001427/0.1545, allocations: 72 kB / 320.4 MB, free: 2.426 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002812/0.1573, allocations: 1.21 MB / 321.6 MB, free: 1.215 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.1574, allocations: 325.7 kB / 321.9 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005984/0.158, allocations: 0.7242 MB / 322.6 MB, free: 172 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002967/0.161, allocations: 2.755 MB / 325.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.161, allocations: 0 / 325.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.161, allocations: 0 / 325.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.302e-05/0.1611, allocations: 0 / 325.4 MB, free: 13.4 MB / 282.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.003281/0.1644, allocations: 3.774 MB / 329.1 MB, free: 9.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.1644, allocations: 12.03 kB / 329.2 MB, free: 9.559 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004007/0.1648, allocations: 437.5 kB / 329.6 MB, free: 9.129 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/0.1672, allocations: 2.717 MB / 332.3 MB, free: 6.312 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.1673, allocations: 32.98 kB / 332.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.889e-05/0.1673, allocations: 55.95 kB / 332.4 MB, free: 6.223 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007533/0.1681, allocations: 0.5514 MB / 332.9 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1681, allocations: 0 / 332.9 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/0.1682, allocations: 23.92 kB / 333 MB, free: 5.641 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.1682, allocations: 16 kB / 333 MB, free: 5.625 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000589/0.1688, allocations: 490.4 kB / 333.5 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003027/0.1718, allocations: 2.719 MB / 336.2 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006781/0.1725, allocations: 442.8 kB / 336.6 MB, free: 1.934 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000649/0.1731, allocations: 0.6171 MB / 337.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01502/0.1881, allocations: 15.16 MB / 352.4 MB, free: 1.766 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005013/0.1886, allocations: 427.8 kB / 352.8 MB, free: 1.328 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 3.316e-06/0.1886, allocations: 0 / 352.8 MB, free: 1.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.004263/0.1929, allocations: 3.141 MB / 356 MB, free: 14.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.193, allocations: 72.39 kB / 356 MB, free: 14.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/0.1955, allocations: 2.896 MB / 358.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.615e-05/0.1955, allocations: 45.69 kB / 359 MB, free: 11.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000895/0.1964, allocations: 1.474 MB / 360.4 MB, free: 9.582 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.1966, allocations: 345.1 kB / 360.8 MB, free: 9.242 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002365/0.1969, allocations: 244.1 kB / 361 MB, free: 8.996 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.197, allocations: 0.5199 MB / 361.5 MB, free: 8.469 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000321/0.1973, allocations: 213.2 kB / 361.7 MB, free: 8.266 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004098/0.1977, allocations: 454 kB / 362.2 MB, free: 7.734 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007364/0.1985, allocations: 0.7113 MB / 362.9 MB, free: 6.934 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1985, allocations: 0 / 362.9 MB, free: 6.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0015/0.2, allocations: 1.351 MB / 364.2 MB, free: 5.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.2, allocations: 8.625 kB / 364.3 MB, free: 5.527 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003412/0.2003, allocations: 120.5 kB / 364.4 MB, free: 5.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004467/0.2008, allocations: 260.6 kB / 364.6 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000412/0.2012, allocations: 183.7 kB / 364.8 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006747/0.2079, allocations: 17.58 MB / 382.4 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005937/0.2085, allocations: 63.98 kB / 382.4 MB, free: 2.074 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.228e-05/0.2086, allocations: 59.98 kB / 382.5 MB, free: 2.016 MB / 330.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.0003654/0.209, allocations: 216.3 kB / 382.7 MB, free: 1.793 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002897/0.2093, allocations: 417.6 kB / 383.1 MB, free: 1.383 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.2113, allocations: 1.573 MB / 384.7 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.2113, allocations: 15.98 kB / 384.7 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.2113, allocations: 7.938 kB / 384.7 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-06/0.2113, allocations: 3.984 kB / 384.7 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.213, allocations: 1.517 MB / 386.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.577e-05/0.2131, allocations: 116 kB / 386.4 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/0.2134, allocations: 107.9 kB / 386.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004012/0.2138, allocations: 260.6 kB / 386.7 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-05/0.2138, allocations: 43.98 kB / 386.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00701/0.2209, allocations: 17.58 MB / 404.3 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2209, allocations: 4 kB / 404.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/0.223, allocations: 1.599 MB / 405.9 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005878/0.2236, allocations: 451.3 kB / 406.4 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002215/0.2238, allocations: 23.94 kB / 406.4 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004359/0.2242, allocations: 47.95 kB / 406.5 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002767/0.2245, allocations: 144.7 kB / 406.6 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.165e-05/0.2246, allocations: 55.98 kB / 406.7 MB, free: 8.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001688/0.2263, allocations: 1.606 MB / 408.3 MB, free: 6.816 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2263, allocations: 0 / 408.3 MB, free: 6.816 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001137/0.2274, allocations: 0.6635 MB / 408.9 MB, free: 6.152 MB / 362.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.0009252/0.2283, allocations: 0.8873 MB / 409.8 MB, free: 5.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.2301, allocations: 2.535 MB / 412.3 MB, free: 2.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2301, allocations: 4 kB / 412.3 MB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.2316, allocations: 2.231 MB / 414.6 MB, free: 84 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.233, allocations: 0.6493 MB / 415.2 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/0.2372, allocations: 4.318 MB / 419.5 MB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/0.2375, allocations: 412.9 kB / 419.9 MB, free: 10.62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007879/0.2383, allocations: 395.3 kB / 420.3 MB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002043/0.2385, allocations: 168.5 kB / 420.5 MB, free: 10.07 MB / 378.7 MB Notification: Performance of SimCode: time 1.623e-06/0.2385, allocations: 0 / 420.5 MB, free: 10.07 MB / 378.7 MB Notification: Performance of Templates: time 0.1484/0.3869, allocations: 39.43 MB / 459.9 MB, free: 108 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.986411086982116]