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.00108/0.00108, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001429/0.00251, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001074/0.001074, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001284/0.002358, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.8973/0.8973, allocations: 177.4 MB / 189.9 MB, free: 4.824 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07394/0.9712, allocations: 53.86 MB / 243.7 MB, free: 14.9 MB / 250.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.383e-06/1.383e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037e-05/1.175e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008514/0.008526, allocations: 13.31 MB / 258.3 MB, free: 296 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1223/0.1308, allocations: 19.55 MB / 277.9 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.1325, allocations: 191.4 kB / 278 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.1344, allocations: 1.075 MB / 279.1 MB, free: 0.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005376/0.1398, allocations: 2.359 MB / 281.5 MB, free: 40 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003275/0.1431, allocations: 1.414 MB / 282.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006679/0.1497, allocations: 6.648 MB / 289.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004643/0.1502, allocations: 284.9 kB / 289.8 MB, free: 14.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002796/0.153, allocations: 3.415 MB / 293.2 MB, free: 13.81 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006468/0.1537, allocations: 0.812 MB / 294 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1538, allocations: 72.66 kB / 294.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002325/0.1561, allocations: 1.27 MB / 295.4 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.1563, allocations: 260.7 kB / 295.6 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00058/0.1568, allocations: 0.6536 MB / 296.3 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002252/0.1591, allocations: 2.591 MB / 298.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.432e-05/0.1591, allocations: 0 / 298.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1591, allocations: 0 / 298.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.01e-05/0.1592, allocations: 0 / 298.9 MB, free: 11.36 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.003125/0.1623, allocations: 4.215 MB / 303.1 MB, free: 7.551 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.1623, allocations: 8.625 kB / 303.1 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002488/0.1626, allocations: 271.7 kB / 303.4 MB, free: 7.277 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/0.1645, allocations: 2.107 MB / 305.5 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.1645, allocations: 33 kB / 305.5 MB, free: 5.113 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.804e-05/0.1646, allocations: 62.88 kB / 305.6 MB, free: 5.055 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005272/0.1651, allocations: 483.5 kB / 306 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1651, allocations: 0 / 306 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.1652, allocations: 16 kB / 306.1 MB, free: 4.559 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.1652, allocations: 23.92 kB / 306.1 MB, free: 4.535 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.1655, allocations: 211.8 kB / 306.3 MB, free: 4.324 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.1674, allocations: 1.45 MB / 307.7 MB, free: 2.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004049/0.1678, allocations: 391.3 kB / 308.1 MB, free: 2.539 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004276/0.1682, allocations: 0.5087 MB / 308.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02231/0.1905, allocations: 22.81 MB / 331.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003534/0.1909, allocations: 361.3 kB / 331.8 MB, free: 10.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.384e-06/0.1909, allocations: 0 / 331.8 MB, free: 10.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003355/0.1943, allocations: 2.229 MB / 334 MB, free: 7.949 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.1943, allocations: 71.5 kB / 334.1 MB, free: 7.867 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.1956, allocations: 2.42 MB / 336.5 MB, free: 5.934 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.008e-05/0.1956, allocations: 41.7 kB / 336.6 MB, free: 5.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005356/0.1962, allocations: 0.602 MB / 337.2 MB, free: 5.434 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.1964, allocations: 352.9 kB / 337.5 MB, free: 5.113 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.1965, allocations: 193.3 kB / 337.7 MB, free: 4.938 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.176e-05/0.1966, allocations: 355.3 kB / 338 MB, free: 4.605 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.1968, allocations: 114.3 kB / 338.1 MB, free: 4.496 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.197, allocations: 306.2 kB / 338.4 MB, free: 4.156 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004363/0.1974, allocations: 0.5155 MB / 339 MB, free: 3.617 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1974, allocations: 4 kB / 339 MB, free: 3.613 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.000873/0.1983, allocations: 0.8816 MB / 339.8 MB, free: 2.734 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.1983, allocations: 8 kB / 339.9 MB, free: 2.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.601e-05/0.1984, allocations: 16 kB / 339.9 MB, free: 2.711 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003254/0.1987, allocations: 221.8 kB / 340.1 MB, free: 2.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.1991, allocations: 199.7 kB / 340.3 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004728/0.2038, allocations: 11.82 MB / 352.1 MB, free: 5.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/0.2043, allocations: 63.94 kB / 352.2 MB, free: 5.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.221e-05/0.2043, allocations: 32.06 kB / 352.2 MB, free: 5.566 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.0002675/0.2046, allocations: 171.3 kB / 352.4 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001899/0.2048, allocations: 263.6 kB / 352.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/0.2062, allocations: 1.194 MB / 353.8 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2062, allocations: 8 kB / 353.8 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2062, allocations: 8 kB / 353.8 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.2062, allocations: 7.984 kB / 353.8 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007569/0.2069, allocations: 0.8687 MB / 354.7 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.632e-05/0.207, allocations: 19.98 kB / 354.7 MB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002764/0.2073, allocations: 123.8 kB / 354.8 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003675/0.2076, allocations: 381.4 kB / 355.2 MB, free: 2.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002908/0.2079, allocations: 223.3 kB / 355.4 MB, free: 2.418 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.182e-05/0.208, allocations: 27.98 kB / 355.5 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004536/0.2125, allocations: 11.82 MB / 367.3 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2125, allocations: 4 kB / 367.3 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.2135, allocations: 1.038 MB / 368.3 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.2137, allocations: 20 kB / 368.3 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.2141, allocations: 51.94 kB / 368.4 MB, free: 4.629 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.2143, allocations: 124.8 kB / 368.5 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.384e-05/0.2143, allocations: 23.98 kB / 368.5 MB, free: 4.484 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007377/0.215, allocations: 1.302 MB / 369.8 MB, free: 3.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.215, allocations: 0 / 369.8 MB, free: 3.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009074/0.2159, allocations: 0.6635 MB / 370.5 MB, free: 2.676 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.0008857/0.2168, allocations: 0.9833 MB / 371.5 MB, free: 1.832 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.2179, allocations: 1.726 MB / 373.2 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.19e-05/0.218, allocations: 42.58 kB / 373.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.2191, allocations: 1.508 MB / 374.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.2203, allocations: 0.8762 MB / 375.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006312/0.2266, allocations: 4.103 MB / 379.7 MB, free: 9.273 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.2269, allocations: 404.9 kB / 380.1 MB, free: 8.859 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008568/0.2277, allocations: 395.4 kB / 380.5 MB, free: 8.469 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007684/0.2285, allocations: 0.6045 MB / 381.1 MB, free: 7.855 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2285, allocations: 0 / 381.1 MB, free: 7.855 MB / 362.7 MB Notification: Performance of Templates: time 0.1459/0.3744, allocations: 45.54 MB / 426.7 MB, free: 114.3 MB / 394.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 -ignoreHideResult -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.6307319030165672]