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.001391/0.001391, allocations: 84.86 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.001627/0.001627, allocations: 167.3 kB / 24.91 MB, free: 8.766 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.9454/0.9454, allocations: 177 MB / 205.2 MB, free: 5.383 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.353e-06/1.353e-06, allocations: 0 / 273.4 MB, free: 1.137 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.917e-05/2.052e-05, allocations: 2.312 kB / 273.4 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009406/0.009427, allocations: 13.27 MB / 286.7 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1237/0.1331, allocations: 19.45 MB / 306.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002144/0.1352, allocations: 192.5 kB / 306.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002449/0.1377, allocations: 1.077 MB / 307.4 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006271/0.144, allocations: 2.358 MB / 309.7 MB, free: 8.598 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004103/0.1481, allocations: 1.412 MB / 311.2 MB, free: 7.637 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006863/0.1549, allocations: 6.791 MB / 318 MB, free: 4.293 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006068/0.1555, allocations: 277.3 kB / 318.2 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002801/0.1583, allocations: 3.016 MB / 321.2 MB, free: 1.086 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008467/0.1592, allocations: 0.8058 MB / 322 MB, free: 284 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.1593, allocations: 76 kB / 322.1 MB, free: 208 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003355/0.1627, allocations: 1.264 MB / 323.4 MB, free: 14.94 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.1629, allocations: 333.7 kB / 323.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008975/0.1638, allocations: 0.7282 MB / 324.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003793/0.1676, allocations: 2.763 MB / 327.2 MB, free: 11.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1676, allocations: 0 / 327.2 MB, free: 11.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1676, allocations: 0 / 327.2 MB, free: 11.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.372e-05/0.1676, allocations: 0 / 327.2 MB, free: 11.11 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.002799/0.1704, allocations: 3.545 MB / 330.7 MB, free: 7.512 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.479e-05/0.1705, allocations: 11.98 kB / 330.8 MB, free: 7.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.1707, allocations: 271.7 kB / 331 MB, free: 7.234 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.1727, allocations: 2.11 MB / 333.1 MB, free: 5.008 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.1727, allocations: 33 kB / 333.2 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.954e-05/0.1728, allocations: 55.94 kB / 333.2 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005555/0.1733, allocations: 483.4 kB / 333.7 MB, free: 4.434 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1733, allocations: 0 / 333.7 MB, free: 4.434 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.009e-05/0.1734, allocations: 23.94 kB / 333.7 MB, free: 4.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.1734, allocations: 19.98 kB / 333.7 MB, free: 4.391 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/0.1737, allocations: 211.8 kB / 333.9 MB, free: 4.188 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.1757, allocations: 1.465 MB / 335.4 MB, free: 2.691 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.1761, allocations: 387.2 kB / 335.8 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000443/0.1765, allocations: 0.4973 MB / 336.3 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02197/0.1985, allocations: 22.87 MB / 359.1 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003791/0.1989, allocations: 361.5 kB / 359.5 MB, free: 9.711 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.485e-06/0.1989, allocations: 0 / 359.5 MB, free: 9.711 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003681/0.2026, allocations: 2.235 MB / 361.7 MB, free: 7.426 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.2026, allocations: 76.39 kB / 361.8 MB, free: 7.336 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.204, allocations: 2.418 MB / 364.2 MB, free: 4.902 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.2041, allocations: 45.69 kB / 364.3 MB, free: 4.852 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005381/0.2046, allocations: 0.5919 MB / 364.9 MB, free: 4.254 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.2048, allocations: 349 kB / 365.2 MB, free: 3.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.205, allocations: 198.3 kB / 365.4 MB, free: 3.711 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.064e-05/0.205, allocations: 353.8 kB / 365.7 MB, free: 3.359 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.2052, allocations: 106.3 kB / 365.9 MB, free: 3.258 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.2054, allocations: 314.6 kB / 366.2 MB, free: 2.887 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004709/0.2059, allocations: 0.5202 MB / 366.7 MB, free: 2.301 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2059, allocations: 0 / 366.7 MB, free: 2.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0009187/0.2068, allocations: 0.8856 MB / 367.6 MB, free: 1.375 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.2068, allocations: 8.531 kB / 367.6 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.915e-05/0.2069, allocations: 23.98 kB / 367.6 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003233/0.2072, allocations: 208.4 kB / 367.8 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.2077, allocations: 199.7 kB / 368 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005018/0.2127, allocations: 11.81 MB / 379.8 MB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006334/0.2133, allocations: 59.95 kB / 379.9 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-05/0.2134, allocations: 28 kB / 379.9 MB, free: 4.156 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.0003255/0.2137, allocations: 179.5 kB / 380.1 MB, free: 3.973 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002015/0.2139, allocations: 263.6 kB / 380.3 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001432/0.2153, allocations: 1.19 MB / 381.5 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.2153, allocations: 8 kB / 381.5 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.2154, allocations: 4 kB / 381.5 MB, free: 2.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.2154, allocations: 7.984 kB / 381.5 MB, free: 2.473 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008042/0.2162, allocations: 0.8761 MB / 382.4 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.368e-05/0.2162, allocations: 12 kB / 382.4 MB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.2165, allocations: 115.8 kB / 382.5 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000315/0.2168, allocations: 220.3 kB / 382.7 MB, free: 1.207 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-05/0.2169, allocations: 27.97 kB / 382.8 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004849/0.2217, allocations: 11.82 MB / 394.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2217, allocations: 0 / 394.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.223, allocations: 1.044 MB / 395.6 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004222/0.2235, allocations: 377.4 kB / 396 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/0.2236, allocations: 23.98 kB / 396 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.224, allocations: 55.89 kB / 396.1 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.2242, allocations: 120.7 kB / 396.2 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.738e-05/0.2243, allocations: 23.98 kB / 396.2 MB, free: 2.809 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008712/0.2252, allocations: 1.309 MB / 397.5 MB, free: 1.488 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2252, allocations: 0 / 397.5 MB, free: 1.488 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001097/0.2263, allocations: 0.6635 MB / 398.2 MB, free: 0.8242 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.0009959/0.2273, allocations: 0.9706 MB / 399.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.2289, allocations: 1.731 MB / 400.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.07e-05/0.229, allocations: 36.94 kB / 400.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008945/0.2299, allocations: 1.509 MB / 402.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.2312, allocations: 0.6326 MB / 403.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004124/0.2354, allocations: 4.127 MB / 407.2 MB, free: 7.438 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.2356, allocations: 408.9 kB / 407.6 MB, free: 7.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006925/0.2363, allocations: 395.4 kB / 408 MB, free: 6.629 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000827/0.2372, allocations: 0.6006 MB / 408.6 MB, free: 6.02 MB / 362.7 MB Notification: Performance of SimCode: time 1.193e-06/0.2372, allocations: 4 kB / 408.6 MB, free: 6.016 MB / 362.7 MB Notification: Performance of Templates: time 0.177/0.4141, allocations: 44.23 MB / 452.8 MB, free: 103.3 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 -s gbode -gbm=radauIIA3 -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.780027433298528]