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.0007313/0.0007313, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001088/0.00182, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001073/0.001073, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001477/0.00255, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9177/0.9177, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07957/0.9972, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.463e-06/1.463e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.608e-05/1.754e-05, allocations: 9.688 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0206/0.02062, allocations: 13.31 MB / 258 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1381/0.1587, allocations: 19.54 MB / 277.6 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001294/0.16, allocations: 196 kB / 277.8 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001713/0.1617, allocations: 1.073 MB / 278.8 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004105/0.1658, allocations: 2.362 MB / 281.2 MB, free: 92 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002707/0.1685, allocations: 1.407 MB / 282.6 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005483/0.174, allocations: 6.635 MB / 289.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003985/0.1744, allocations: 288 kB / 289.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002493/0.1769, allocations: 3.424 MB / 292.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006613/0.1775, allocations: 0.8159 MB / 293.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.1777, allocations: 72.91 kB / 293.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001834/0.1795, allocations: 1.268 MB / 295.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.1797, allocations: 264.9 kB / 295.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004742/0.1801, allocations: 0.6535 MB / 296 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001909/0.182, allocations: 2.579 MB / 298.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.069e-05/0.182, allocations: 0 / 298.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.182, allocations: 0 / 298.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.817e-05/0.1821, allocations: 0 / 298.6 MB, free: 11.7 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.002928/0.185, allocations: 4.208 MB / 302.8 MB, free: 7.941 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.788e-05/0.185, allocations: 8.031 kB / 302.8 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002407/0.1853, allocations: 274.7 kB / 303.1 MB, free: 7.668 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001909/0.1872, allocations: 2.112 MB / 305.2 MB, free: 5.535 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.1872, allocations: 33 kB / 305.2 MB, free: 5.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.933e-05/0.1873, allocations: 51.95 kB / 305.3 MB, free: 5.449 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005138/0.1878, allocations: 482.7 kB / 305.7 MB, free: 4.969 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1878, allocations: 0 / 305.7 MB, free: 4.969 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.1879, allocations: 23.98 kB / 305.8 MB, free: 4.945 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.1879, allocations: 23.92 kB / 305.8 MB, free: 4.922 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.1882, allocations: 211.8 kB / 306 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.1901, allocations: 1.453 MB / 307.4 MB, free: 3.297 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004041/0.1905, allocations: 399 kB / 307.8 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004428/0.191, allocations: 0.5089 MB / 308.3 MB, free: 2.422 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02228/0.2132, allocations: 22.8 MB / 331.1 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003445/0.2136, allocations: 364.2 kB / 331.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 1.914e-06/0.2136, allocations: 0 / 331.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003359/0.2169, allocations: 2.259 MB / 333.8 MB, free: 8.297 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.217, allocations: 63.31 kB / 333.8 MB, free: 8.223 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.2182, allocations: 2.426 MB / 336.2 MB, free: 6.285 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/0.2182, allocations: 41.7 kB / 336.3 MB, free: 6.238 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/0.2185, allocations: 0.598 MB / 336.9 MB, free: 5.789 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.2187, allocations: 351.7 kB / 337.2 MB, free: 5.469 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.2189, allocations: 199.1 kB / 337.4 MB, free: 5.289 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.328e-05/0.2189, allocations: 350.2 kB / 337.8 MB, free: 4.961 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.2191, allocations: 114.3 kB / 337.9 MB, free: 4.852 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004484/0.2195, allocations: 310 kB / 338.2 MB, free: 4.512 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004337/0.22, allocations: 0.535 MB / 338.7 MB, free: 3.953 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.22, allocations: 0 / 338.7 MB, free: 3.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0008614/0.2208, allocations: 0.8796 MB / 339.6 MB, free: 3.082 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2209, allocations: 4 kB / 339.6 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.857e-05/0.2209, allocations: 23.98 kB / 339.6 MB, free: 3.055 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000316/0.2212, allocations: 216.1 kB / 339.8 MB, free: 2.824 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003948/0.2216, allocations: 204.7 kB / 340 MB, free: 2.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/0.226, allocations: 11.78 MB / 351.8 MB, free: 6.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004402/0.2265, allocations: 68.06 kB / 351.9 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.489e-05/0.2265, allocations: 28 kB / 351.9 MB, free: 5.977 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.0002738/0.2268, allocations: 169.3 kB / 352.1 MB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004493/0.2272, allocations: 267.6 kB / 352.3 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/0.2286, allocations: 1.193 MB / 353.5 MB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.2286, allocations: 12 kB / 353.5 MB, free: 4.305 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2287, allocations: 4 kB / 353.5 MB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.2287, allocations: 3.984 kB / 353.5 MB, free: 4.297 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007445/0.2294, allocations: 0.8687 MB / 354.4 MB, free: 3.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.358e-05/0.2295, allocations: 19.98 kB / 354.4 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.2297, allocations: 119.8 kB / 354.5 MB, free: 3.461 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003627/0.2301, allocations: 383.8 kB / 354.9 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002995/0.2304, allocations: 221.8 kB / 355.1 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.409e-05/0.2305, allocations: 23.98 kB / 355.2 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004481/0.2349, allocations: 11.77 MB / 366.9 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2349, allocations: 0 / 366.9 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.236, allocations: 1.068 MB / 368 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.2362, allocations: 16 kB / 368 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003781/0.2366, allocations: 47.95 kB / 368.1 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.2368, allocations: 128.6 kB / 368.2 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.487e-05/0.2368, allocations: 23.98 kB / 368.2 MB, free: 4.93 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007515/0.2376, allocations: 1.306 MB / 369.5 MB, free: 3.781 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2376, allocations: 0 / 369.5 MB, free: 3.781 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008862/0.2384, allocations: 0.6596 MB / 370.2 MB, free: 3.121 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.0009202/0.2394, allocations: 0.9774 MB / 371.2 MB, free: 2.285 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.2405, allocations: 1.742 MB / 372.9 MB, free: 416 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.908e-05/0.2405, allocations: 40 kB / 372.9 MB, free: 376 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.2416, allocations: 1.557 MB / 374.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/0.2442, allocations: 5.908 MB / 380.4 MB, free: 7.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006304/0.2505, allocations: 4.09 MB / 384.5 MB, free: 3.531 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.2507, allocations: 404.9 kB / 384.9 MB, free: 3.113 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006002/0.2513, allocations: 391.3 kB / 385.3 MB, free: 2.727 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007996/0.2521, allocations: 0.6006 MB / 385.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.2521, allocations: 0 / 385.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of Templates: time 0.1476/0.3998, allocations: 45.48 MB / 431.3 MB, free: 106.3 MB / 394.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8439475251361728]