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.0008544/0.0008544, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.0008289/0.0008289, allocations: 160.2 kB / 24.91 MB, free: 8.754 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.832/0.832, allocations: 177 MB / 205.2 MB, free: 5.004 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.293e-06/1.293e-06, allocations: 0 / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.07e-05/1.199e-05, allocations: 5.266 kB / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01064/0.01066, allocations: 13.22 MB / 286.6 MB, free: 3.773 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1126/0.1233, allocations: 19.45 MB / 306 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.1245, allocations: 191.3 kB / 306.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.1262, allocations: 1.071 MB / 307.3 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004833/0.1311, allocations: 2.431 MB / 309.7 MB, free: 8.414 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003377/0.1345, allocations: 1.464 MB / 311.2 MB, free: 7.453 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005234/0.1397, allocations: 6.779 MB / 318 MB, free: 4.121 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004332/0.1401, allocations: 282.6 kB / 318.3 MB, free: 3.887 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002215/0.1423, allocations: 3.024 MB / 321.3 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006719/0.143, allocations: 0.8058 MB / 322.1 MB, free: 48 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.1432, allocations: 79.98 kB / 322.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002431/0.1456, allocations: 1.202 MB / 323.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.1458, allocations: 337.6 kB / 323.7 MB, free: 14.43 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006188/0.1464, allocations: 0.7204 MB / 324.4 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002454/0.1489, allocations: 2.763 MB / 327.2 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1489, allocations: 4 kB / 327.2 MB, free: 10.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1489, allocations: 0 / 327.2 MB, free: 10.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.357e-05/0.1489, allocations: 0 / 327.2 MB, free: 10.93 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.002772/0.1517, allocations: 3.531 MB / 330.7 MB, free: 7.352 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1518, allocations: 11.98 kB / 330.7 MB, free: 7.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002293/0.152, allocations: 275.7 kB / 331 MB, free: 7.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/0.1539, allocations: 2.118 MB / 333.1 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.1539, allocations: 40.92 kB / 333.1 MB, free: 4.793 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.16e-05/0.154, allocations: 51.95 kB / 333.2 MB, free: 4.742 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005253/0.1545, allocations: 483.5 kB / 333.7 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1546, allocations: 0 / 333.7 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.412e-05/0.1546, allocations: 23.94 kB / 333.7 MB, free: 4.234 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.1546, allocations: 19.98 kB / 333.7 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003278/0.1549, allocations: 215.8 kB / 333.9 MB, free: 4.008 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.1568, allocations: 1.45 MB / 335.4 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.1572, allocations: 388.7 kB / 335.8 MB, free: 2.145 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.1577, allocations: 0.5012 MB / 336.3 MB, free: 1.641 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02295/0.1806, allocations: 22.87 MB / 359.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003657/0.181, allocations: 358 kB / 359.5 MB, free: 9.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.544e-06/0.181, allocations: 0 / 359.5 MB, free: 9.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003575/0.1846, allocations: 2.223 MB / 361.7 MB, free: 7.266 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.1846, allocations: 68.34 kB / 361.8 MB, free: 7.184 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001307/0.1859, allocations: 2.422 MB / 364.2 MB, free: 4.746 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.933e-05/0.186, allocations: 49.7 kB / 364.2 MB, free: 4.691 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003046/0.1863, allocations: 0.5919 MB / 364.8 MB, free: 4.094 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.1865, allocations: 356.9 kB / 365.2 MB, free: 3.742 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.1866, allocations: 198.3 kB / 365.4 MB, free: 3.543 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.67e-05/0.1867, allocations: 349.8 kB / 365.7 MB, free: 3.195 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.1869, allocations: 114.3 kB / 365.8 MB, free: 3.086 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.1871, allocations: 306.7 kB / 366.1 MB, free: 2.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.1875, allocations: 0.528 MB / 366.7 MB, free: 2.129 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1875, allocations: 0 / 366.7 MB, free: 2.129 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0008819/0.1884, allocations: 0.8778 MB / 367.5 MB, free: 1.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.1884, allocations: 4 kB / 367.5 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.88e-05/0.1885, allocations: 23.98 kB / 367.6 MB, free: 1.184 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003729/0.1889, allocations: 220.9 kB / 367.8 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003602/0.1892, allocations: 182.4 kB / 368 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005718/0.195, allocations: 11.8 MB / 379.8 MB, free: 4.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009196/0.1959, allocations: 68.03 kB / 379.8 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.703e-05/0.196, allocations: 35.94 kB / 379.9 MB, free: 4 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.0004311/0.1964, allocations: 161.7 kB / 380 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003152/0.1967, allocations: 259.6 kB / 380.3 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002176/0.1989, allocations: 1.197 MB / 381.5 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.1989, allocations: 8 kB / 381.5 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1989, allocations: 8 kB / 381.5 MB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.1989, allocations: 3.984 kB / 381.5 MB, free: 2.328 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/0.2003, allocations: 0.8722 MB / 382.4 MB, free: 1.438 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.99e-05/0.2004, allocations: 19.92 kB / 382.4 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003928/0.2008, allocations: 107.9 kB / 382.5 MB, free: 1.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000447/0.2012, allocations: 228.2 kB / 382.7 MB, free: 1.059 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.779e-05/0.2013, allocations: 23.98 kB / 382.7 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006139/0.2074, allocations: 11.81 MB / 394.5 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2074, allocations: 0 / 394.5 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.2093, allocations: 1.052 MB / 395.6 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006773/0.2099, allocations: 373.4 kB / 396 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002777/0.2102, allocations: 23.98 kB / 396 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006281/0.2108, allocations: 51.89 kB / 396 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003996/0.2112, allocations: 116.8 kB / 396.1 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.42e-05/0.2113, allocations: 23.98 kB / 396.2 MB, free: 2.676 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001169/0.2125, allocations: 1.306 MB / 397.5 MB, free: 1.359 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2125, allocations: 0 / 397.5 MB, free: 1.359 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001015/0.2135, allocations: 0.6673 MB / 398.1 MB, free: 0.6914 MB / 346.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.0009066/0.2144, allocations: 0.9548 MB / 399.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.2156, allocations: 1.732 MB / 400.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.328e-05/0.2156, allocations: 36 kB / 400.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008031/0.2164, allocations: 1.517 MB / 402.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.2176, allocations: 0.6377 MB / 403 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.2212, allocations: 4.137 MB / 407.1 MB, free: 7.301 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.2214, allocations: 412.9 kB / 407.6 MB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006408/0.2221, allocations: 391.4 kB / 407.9 MB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000804/0.2229, allocations: 0.6123 MB / 408.5 MB, free: 5.871 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.2229, allocations: 0 / 408.5 MB, free: 5.871 MB / 362.7 MB Notification: Performance of Templates: time 0.1377/0.3606, allocations: 44.23 MB / 452.8 MB, free: 103.2 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.456951456144452]