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.000906/0.000906, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 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.0008939/0.0008939, allocations: 156.4 kB / 24.98 MB, free: 8.75 MB / 18.57 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 0.8917/0.8917, allocations: 177 MB / 205.2 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] 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 1.162e-06/1.162e-06, allocations: 0 / 273 MB, free: 1.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.191e-05/2.307e-05, allocations: 9.266 kB / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009357/0.00938, allocations: 13.52 MB / 286.5 MB, free: 4.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1277/0.1371, allocations: 19.39 MB / 305.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.1387, allocations: 187.2 kB / 306.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.1407, allocations: 1.044 MB / 307.1 MB, free: 9.898 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005352/0.146, allocations: 2.4 MB / 309.5 MB, free: 8.562 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003689/0.1497, allocations: 1.437 MB / 311 MB, free: 7.688 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005774/0.1555, allocations: 6.724 MB / 317.7 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004809/0.156, allocations: 239.4 kB / 317.9 MB, free: 4.215 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.1574, allocations: 1.538 MB / 319.5 MB, free: 2.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000642/0.158, allocations: 0.7823 MB / 320.2 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.1581, allocations: 76 kB / 320.3 MB, free: 2.121 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002356/0.1605, allocations: 1.213 MB / 321.5 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.1606, allocations: 321.7 kB / 321.8 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005721/0.1612, allocations: 0.7204 MB / 322.6 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00307/0.1643, allocations: 2.755 MB / 325.3 MB, free: 13.1 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1643, allocations: 4 kB / 325.3 MB, free: 13.1 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1643, allocations: 0 / 325.3 MB, free: 13.1 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.55e-05/0.1643, allocations: 0 / 325.3 MB, free: 13.1 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.003122/0.1675, allocations: 3.786 MB / 329.1 MB, free: 9.254 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1675, allocations: 11.98 kB / 329.1 MB, free: 9.242 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003679/0.1679, allocations: 433.5 kB / 329.5 MB, free: 8.816 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002577/0.1704, allocations: 2.713 MB / 332.3 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.1705, allocations: 37.5 kB / 332.3 MB, free: 5.965 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.69e-05/0.1706, allocations: 51.95 kB / 332.3 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007325/0.1713, allocations: 0.5553 MB / 332.9 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.1713, allocations: 4 kB / 332.9 MB, free: 5.344 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.181e-05/0.1714, allocations: 19.94 kB / 332.9 MB, free: 5.324 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.1714, allocations: 19.98 kB / 332.9 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005713/0.1719, allocations: 478.4 kB / 333.4 MB, free: 4.844 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002951/0.1749, allocations: 2.717 MB / 336.1 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/0.1755, allocations: 448.1 kB / 336.6 MB, free: 1.629 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006435/0.1762, allocations: 0.617 MB / 337.2 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01541/0.1916, allocations: 15.16 MB / 352.3 MB, free: 1.461 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005184/0.1921, allocations: 439.8 kB / 352.8 MB, free: 1.016 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.695e-06/0.1921, allocations: 0 / 352.8 MB, free: 1.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.004945/0.197, allocations: 3.145 MB / 355.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.1971, allocations: 68.41 kB / 356 MB, free: 13.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0024/0.1995, allocations: 2.896 MB / 358.9 MB, free: 10.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.631e-05/0.1995, allocations: 41.7 kB / 358.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009448/0.2005, allocations: 1.474 MB / 360.4 MB, free: 9.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005126/0.201, allocations: 349.1 kB / 360.7 MB, free: 8.926 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.2012, allocations: 248.1 kB / 361 MB, free: 8.676 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2014, allocations: 0.5199 MB / 361.5 MB, free: 8.148 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003395/0.2017, allocations: 202.2 kB / 361.7 MB, free: 7.953 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004162/0.2021, allocations: 458.1 kB / 362.1 MB, free: 7.414 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007376/0.2029, allocations: 0.6996 MB / 362.8 MB, free: 6.629 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2029, allocations: 8 kB / 362.8 MB, free: 6.621 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001581/0.2045, allocations: 1.355 MB / 364.2 MB, free: 5.215 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.2045, allocations: 10.97 kB / 364.2 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.2046, allocations: 120 kB / 364.3 MB, free: 5.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004568/0.205, allocations: 257.2 kB / 364.6 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.2055, allocations: 184.5 kB / 364.8 MB, free: 4.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007075/0.2125, allocations: 17.58 MB / 382.3 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007614/0.2133, allocations: 59.95 kB / 382.4 MB, free: 1.758 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-05/0.2134, allocations: 60.06 kB / 382.5 MB, free: 1.699 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.0003886/0.2138, allocations: 224.3 kB / 382.7 MB, free: 1.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/0.2141, allocations: 409.6 kB / 383.1 MB, free: 1.066 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002041/0.2161, allocations: 1.571 MB / 384.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.2161, allocations: 8 kB / 384.7 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.2162, allocations: 11.94 kB / 384.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.2162, allocations: 3.984 kB / 384.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.2176, allocations: 1.525 MB / 386.2 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.315e-05/0.2177, allocations: 116 kB / 386.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.218, allocations: 103.9 kB / 386.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004265/0.2184, allocations: 260.6 kB / 386.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.64e-05/0.2185, allocations: 43.98 kB / 386.7 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007019/0.2255, allocations: 17.59 MB / 404.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2255, allocations: 0 / 404.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002251/0.2277, allocations: 1.591 MB / 405.9 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006926/0.2284, allocations: 459.3 kB / 406.3 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/0.2287, allocations: 19.94 kB / 406.4 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004535/0.2291, allocations: 51.94 kB / 406.4 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/0.2294, allocations: 144.7 kB / 406.5 MB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.637e-05/0.2295, allocations: 51.98 kB / 406.6 MB, free: 8.125 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00147/0.231, allocations: 1.606 MB / 408.2 MB, free: 6.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.231, allocations: 0 / 408.2 MB, free: 6.512 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001237/0.2322, allocations: 0.6635 MB / 408.9 MB, free: 5.848 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.001023/0.2332, allocations: 0.8881 MB / 409.8 MB, free: 4.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002157/0.2354, allocations: 2.54 MB / 412.3 MB, free: 2.211 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2354, allocations: 0 / 412.3 MB, free: 2.211 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.2366, allocations: 2.239 MB / 414.5 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.2382, allocations: 0.6522 MB / 415.2 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004535/0.2427, allocations: 4.306 MB / 419.5 MB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.243, allocations: 420.9 kB / 419.9 MB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007915/0.2438, allocations: 387.4 kB / 420.3 MB, free: 9.934 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.244, allocations: 172.5 kB / 420.4 MB, free: 9.766 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/0.244, allocations: 0 / 420.4 MB, free: 9.766 MB / 378.7 MB Notification: Performance of Templates: time 0.151/0.395, allocations: 39.42 MB / 459.9 MB, free: 107.8 MB / 378.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8945457830559462]