Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001498/0.00253, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009545/0.0009545, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001142/0.002097, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.817/0.817, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.13/0.947, allocations: 52.49 MB / 238.5 MB, free: 7.613 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.247e-06/1.05e-05, allocations: 3.531 kB / 239.7 MB, free: 6.359 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008691/0.008702, allocations: 13.29 MB / 253 MB, free: 9.027 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01646/0.02516, allocations: 19.53 MB / 272.6 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00145/0.02661, allocations: 185.9 kB / 272.7 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002078/0.02869, allocations: 1.08 MB / 273.8 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00449/0.03318, allocations: 2.352 MB / 276.2 MB, free: 1.809 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002638/0.03582, allocations: 1.411 MB / 277.6 MB, free: 400 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006684/0.0425, allocations: 6.568 MB / 284.2 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004253/0.04292, allocations: 277.7 kB / 284.4 MB, free: 9.48 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003319/0.04624, allocations: 3.336 MB / 287.8 MB, free: 6.051 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008857/0.04713, allocations: 0.8175 MB / 288.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.04728, allocations: 72 kB / 288.7 MB, free: 5.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002327/0.04961, allocations: 1.268 MB / 289.9 MB, free: 3.891 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.04981, allocations: 257.9 kB / 290.2 MB, free: 3.637 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007466/0.05056, allocations: 0.6542 MB / 290.8 MB, free: 2.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002477/0.05304, allocations: 2.58 MB / 293.4 MB, free: 400 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/0.05305, allocations: 0 / 293.4 MB, free: 400 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.05305, allocations: 4 kB / 293.4 MB, free: 396 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.29e-05/0.05307, allocations: 0 / 293.4 MB, free: 396 kB / 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.003602/0.05668, allocations: 4.198 MB / 297.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.05671, allocations: 15.98 kB / 297.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00041/0.05712, allocations: 271.7 kB / 297.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/0.05962, allocations: 2.11 MB / 300 MB, free: 9.609 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.05965, allocations: 37 kB / 300 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.05976, allocations: 55.88 kB / 300.1 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000675/0.06043, allocations: 479.5 kB / 300.6 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.06044, allocations: 0 / 300.6 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.322e-05/0.0605, allocations: 28 kB / 300.6 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.06052, allocations: 23.98 kB / 300.6 MB, free: 8.992 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004524/0.06097, allocations: 215.8 kB / 300.8 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.06331, allocations: 1.454 MB / 302.3 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005044/0.06381, allocations: 382.8 kB / 302.6 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005776/0.06439, allocations: 0.517 MB / 303.2 MB, free: 6.402 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1197/0.1841, allocations: 22.76 MB / 325.9 MB, free: 60.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004289/0.1846, allocations: 359.5 kB / 326.3 MB, free: 60.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.575e-06/0.1846, allocations: 3.5 kB / 326.3 MB, free: 60.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003623/0.1882, allocations: 2.262 MB / 328.5 MB, free: 60.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.1882, allocations: 64.61 kB / 328.6 MB, free: 60.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/0.1895, allocations: 2.425 MB / 331 MB, free: 60.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.054e-05/0.1896, allocations: 44.55 kB / 331.1 MB, free: 60.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002326/0.1898, allocations: 0.599 MB / 331.7 MB, free: 60.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.1899, allocations: 353.8 kB / 332 MB, free: 60.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.1901, allocations: 198.2 kB / 332.2 MB, free: 60.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.58e-05/0.1901, allocations: 351.5 kB / 332.6 MB, free: 59.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.1903, allocations: 112.1 kB / 332.7 MB, free: 59.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.1904, allocations: 311.4 kB / 333 MB, free: 59.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.1908, allocations: 0.5248 MB / 333.5 MB, free: 59.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1908, allocations: 0 / 333.5 MB, free: 59.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0007628/0.1916, allocations: 0.8861 MB / 334.4 MB, free: 59.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1916, allocations: 5.5 kB / 334.4 MB, free: 59.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.751e-05/0.1917, allocations: 20.31 kB / 334.4 MB, free: 59.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/0.1919, allocations: 217.5 kB / 334.6 MB, free: 59.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003681/0.1923, allocations: 200.8 kB / 334.8 MB, free: 59.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00248/0.1948, allocations: 11.77 MB / 346.6 MB, free: 47.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000421/0.1952, allocations: 69.97 kB / 346.7 MB, free: 47.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.737e-05/0.1953, allocations: 27.31 kB / 346.7 MB, free: 47.88 MB / 314.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.0002415/0.1955, allocations: 167.8 kB / 346.8 MB, free: 47.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.1957, allocations: 261.2 kB / 347.1 MB, free: 47.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001221/0.1969, allocations: 1.195 MB / 348.3 MB, free: 47.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.1969, allocations: 13.34 kB / 348.3 MB, free: 47.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.1969, allocations: 3.781 kB / 348.3 MB, free: 47.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.1969, allocations: 4.125 kB / 348.3 MB, free: 47.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006379/0.1975, allocations: 0.8769 MB / 349.2 MB, free: 47.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.818e-05/0.1976, allocations: 18.53 kB / 349.2 MB, free: 47.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.1979, allocations: 119.9 kB / 349.3 MB, free: 47.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003007/0.1982, allocations: 376.8 kB / 349.7 MB, free: 47.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000257/0.1984, allocations: 222.7 kB / 349.9 MB, free: 47.14 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.327e-05/0.1985, allocations: 25.08 kB / 349.9 MB, free: 47.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002352/0.2008, allocations: 11.78 MB / 361.7 MB, free: 35.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2008, allocations: 3.625 kB / 361.7 MB, free: 35.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009437/0.2018, allocations: 1.071 MB / 362.8 MB, free: 35.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.2019, allocations: 18.5 kB / 362.8 MB, free: 35.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/0.2023, allocations: 54.5 kB / 362.9 MB, free: 35.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.2025, allocations: 117.2 kB / 363 MB, free: 35.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.07e-05/0.2025, allocations: 21.17 kB / 363 MB, free: 35.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005745/0.2031, allocations: 1.304 MB / 364.3 MB, free: 34.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2031, allocations: 0 / 364.3 MB, free: 34.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007541/0.2038, allocations: 0.6592 MB / 365 MB, free: 33.82 MB / 314.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.0007584/0.2046, allocations: 0.9732 MB / 365.9 MB, free: 33.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008506/0.2054, allocations: 1.734 MB / 367.7 MB, free: 31.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-05/0.2055, allocations: 47.02 kB / 367.7 MB, free: 31.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.206, allocations: 1.552 MB / 369.3 MB, free: 29.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.2078, allocations: 5.917 MB / 375.2 MB, free: 22.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005542/0.2134, allocations: 4.092 MB / 379.3 MB, free: 18.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002042/0.2136, allocations: 408.9 kB / 379.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005271/0.2141, allocations: 391.4 kB / 380.1 MB, free: 18.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007173/0.2148, allocations: 0.6004 MB / 380.7 MB, free: 17.59 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.2148, allocations: 0 / 380.7 MB, free: 17.59 MB / 314.7 MB Notification: Performance of Templates: time 0.04231/0.2571, allocations: 45.45 MB / 426.1 MB, free: 5.207 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.374847924336791]