Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002416/0.002416, allocations: 103.5 kB / 21.73 MB, free: 2.691 MB / 18.57 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.002157/0.002157, allocations: 169.9 kB / 25.03 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 158.6 MB / 186.8 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 250.3 MB, free: 7.855 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.509e-05/2.639e-05, allocations: 2.312 kB / 250.3 MB, free: 7.852 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01722/0.01725, allocations: 12.85 MB / 263.2 MB, free: 10.94 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02981/0.04706, allocations: 18.42 MB / 281.6 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003371/0.05043, allocations: 193.8 kB / 281.8 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004788/0.05522, allocations: 1.013 MB / 282.8 MB, free: 7.238 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01256/0.06778, allocations: 2.366 MB / 285.2 MB, free: 4.855 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006853/0.07463, allocations: 1.398 MB / 286.6 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01715/0.09178, allocations: 6.499 MB / 293.1 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001042/0.09282, allocations: 241.1 kB / 293.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003216/0.09604, allocations: 1.414 MB / 294.7 MB, free: 11.24 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.09787, allocations: 0.7553 MB / 295.5 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003229/0.0982, allocations: 72 kB / 295.6 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004959/0.1032, allocations: 1.097 MB / 296.7 MB, free: 9.312 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005797/0.1037, allocations: 317.7 kB / 297 MB, free: 9 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001843/0.1056, allocations: 0.732 MB / 297.7 MB, free: 8.266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008306/0.1139, allocations: 3.721 MB / 301.4 MB, free: 4.531 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1139, allocations: 0 / 301.4 MB, free: 4.531 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1139, allocations: 0 / 301.4 MB, free: 4.531 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.956e-05/0.1139, allocations: 0 / 301.4 MB, free: 4.531 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.006923/0.1209, allocations: 3.956 MB / 305.4 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1209, allocations: 11.98 kB / 305.4 MB, free: 0.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006003/0.1215, allocations: 441.5 kB / 305.8 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0049/0.1264, allocations: 2.741 MB / 308.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.95e-05/0.1265, allocations: 36.98 kB / 308.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.1266, allocations: 51.95 kB / 308.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.1281, allocations: 0.6562 MB / 309.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1281, allocations: 0 / 309.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-05/0.1282, allocations: 20 kB / 309.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.856e-05/0.1282, allocations: 19.98 kB / 309.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.1299, allocations: 0.7305 MB / 310.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006308/0.1362, allocations: 3.224 MB / 313.3 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.1377, allocations: 0.6041 MB / 313.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/0.1392, allocations: 0.7732 MB / 314.7 MB, free: 7.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03148/0.1707, allocations: 15.32 MB / 330 MB, free: 7.336 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001204/0.1719, allocations: 0.574 MB / 330.6 MB, free: 6.754 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 5.591e-06/0.1719, allocations: 7.922 kB / 330.6 MB, free: 6.746 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.01127/0.1832, allocations: 4.147 MB / 334.7 MB, free: 2.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.1832, allocations: 64.41 kB / 334.8 MB, free: 2.445 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00517/0.1884, allocations: 3.659 MB / 338.5 MB, free: 14.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.1885, allocations: 41.7 kB / 338.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001816/0.1903, allocations: 1.596 MB / 340.1 MB, free: 13.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004048/0.1907, allocations: 361.1 kB / 340.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004633/0.1912, allocations: 268.1 kB / 340.7 MB, free: 12.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003204/0.1915, allocations: 0.5355 MB / 341.2 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.1926, allocations: 410 kB / 341.6 MB, free: 11.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.1939, allocations: 0.6583 MB / 342.3 MB, free: 10.81 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002511/0.1964, allocations: 1.16 MB / 343.5 MB, free: 9.562 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.1965, allocations: 7.938 kB / 343.5 MB, free: 9.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004131/0.2006, allocations: 1.78 MB / 345.2 MB, free: 7.723 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.2006, allocations: 8 kB / 345.3 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002036/0.2008, allocations: 124 kB / 345.4 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009505/0.2018, allocations: 312.7 kB / 345.7 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008384/0.2026, allocations: 183.7 kB / 345.9 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1193/0.3219, allocations: 18.22 MB / 364.1 MB, free: 91.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/0.3236, allocations: 62.72 kB / 364.1 MB, free: 91.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/0.3239, allocations: 60.61 kB / 364.2 MB, free: 91.94 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.001135/0.325, allocations: 467.8 kB / 364.7 MB, free: 91.78 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007501/0.3258, allocations: 422.2 kB / 365.1 MB, free: 91.78 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004555/0.3304, allocations: 1.964 MB / 367 MB, free: 91.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.3304, allocations: 11.12 kB / 367 MB, free: 91.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.3304, allocations: 7.625 kB / 367 MB, free: 91.54 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.3304, allocations: 6.969 kB / 367.1 MB, free: 91.54 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.333, allocations: 1.869 MB / 368.9 MB, free: 91.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001544/0.3332, allocations: 121.3 kB / 369 MB, free: 91.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006222/0.3338, allocations: 102.5 kB / 369.1 MB, free: 91.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008516/0.3346, allocations: 309.5 kB / 369.4 MB, free: 90.99 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.3348, allocations: 45.47 kB / 369.5 MB, free: 90.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007315/0.3421, allocations: 18.24 MB / 387.7 MB, free: 72.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3421, allocations: 0 / 387.7 MB, free: 72.54 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004175/0.3463, allocations: 2.269 MB / 390 MB, free: 70.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009671/0.3472, allocations: 455.3 kB / 390.4 MB, free: 69.97 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/0.3475, allocations: 19.94 kB / 390.5 MB, free: 69.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000958/0.3485, allocations: 59.81 kB / 390.5 MB, free: 69.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/0.3488, allocations: 148.6 kB / 390.7 MB, free: 69.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.062e-05/0.3489, allocations: 51.98 kB / 390.7 MB, free: 69.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002034/0.3509, allocations: 2.083 MB / 392.8 MB, free: 67.61 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3509, allocations: 0 / 392.8 MB, free: 67.61 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001367/0.3523, allocations: 0.6664 MB / 393.5 MB, free: 66.98 MB / 330.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.001082/0.3534, allocations: 0.888 MB / 394.3 MB, free: 66.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003022/0.3564, allocations: 2.95 MB / 397.3 MB, free: 63.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3564, allocations: 0 / 397.3 MB, free: 63.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.3583, allocations: 2.442 MB / 399.7 MB, free: 60.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.3599, allocations: 0.5559 MB / 400.3 MB, free: 59.94 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/0.3647, allocations: 4.658 MB / 405 MB, free: 55.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006735/0.3654, allocations: 1.108 MB / 406.1 MB, free: 54.11 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009497/0.3663, allocations: 395.4 kB / 406.4 MB, free: 53.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.3666, allocations: 176.5 kB / 406.6 MB, free: 53.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3666, allocations: 0 / 406.6 MB, free: 53.54 MB / 330.7 MB Notification: Performance of Templates: time 0.05186/0.4184, allocations: 39.38 MB / 446 MB, free: 14.13 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.224896547035314]