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.001896/0.001896, allocations: 88.33 kB / 20.96 MB, free: 3.449 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.002257/0.002257, allocations: 165.3 kB / 24.27 MB, free: 148 kB / 18.57 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 1.462/1.462, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.904e-06/1.904e-06, allocations: 0 / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.203e-05/3.393e-05, allocations: 2.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.02118/0.02121, allocations: 12 MB / 284.3 MB, free: 5.785 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1327/0.1539, allocations: 17.56 MB / 301.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.1558, allocations: 191.1 kB / 302 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00264/0.1585, allocations: 1.053 MB / 303.1 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006892/0.1654, allocations: 2.395 MB / 305.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004676/0.17, allocations: 1.449 MB / 306.9 MB, free: 9.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008645/0.1787, allocations: 6.7 MB / 313.6 MB, free: 6.562 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005474/0.1792, allocations: 252.2 kB / 313.9 MB, free: 6.387 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00176/0.181, allocations: 1.541 MB / 315.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008491/0.1818, allocations: 0.7785 MB / 316.2 MB, free: 4.902 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001464/0.182, allocations: 76 kB / 316.3 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003329/0.1853, allocations: 1.214 MB / 317.5 MB, free: 3.613 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002261/0.1855, allocations: 321.7 kB / 317.8 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008904/0.1864, allocations: 0.7204 MB / 318.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004052/0.1905, allocations: 3.69 MB / 322.2 MB, free: 14.87 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1905, allocations: 0 / 322.2 MB, free: 14.87 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1905, allocations: 0 / 322.2 MB, free: 14.87 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.284e-05/0.1905, allocations: 4 kB / 322.2 MB, free: 14.87 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.00589/0.1964, allocations: 3.564 MB / 325.8 MB, free: 11.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1965, allocations: 8.031 kB / 325.8 MB, free: 11.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006362/0.1971, allocations: 445.5 kB / 326.2 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004371/0.2015, allocations: 2.722 MB / 329 MB, free: 7.984 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.2015, allocations: 37 kB / 329 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.2017, allocations: 55.94 kB / 329 MB, free: 7.891 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.2034, allocations: 0.7538 MB / 329.8 MB, free: 7.133 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2034, allocations: 8 kB / 329.8 MB, free: 7.125 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.357e-05/0.2035, allocations: 20 kB / 329.8 MB, free: 7.105 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.2035, allocations: 23.92 kB / 329.9 MB, free: 7.082 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002023/0.2056, allocations: 0.8553 MB / 330.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005545/0.2111, allocations: 2.665 MB / 333.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.213, allocations: 0.7246 MB / 334.1 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/0.2146, allocations: 0.8603 MB / 335 MB, free: 1.922 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03052/0.2452, allocations: 15.16 MB / 350.1 MB, free: 2.379 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001372/0.2465, allocations: 0.588 MB / 350.7 MB, free: 1.781 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.765e-06/0.2465, allocations: 4 kB / 350.7 MB, free: 1.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.01419/0.2607, allocations: 4.544 MB / 355.3 MB, free: 13.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.2608, allocations: 68.39 kB / 355.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004193/0.265, allocations: 2.704 MB / 358 MB, free: 10.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001503/0.2651, allocations: 41.7 kB / 358.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001429/0.2666, allocations: 1.308 MB / 359.4 MB, free: 9.004 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004311/0.267, allocations: 352.9 kB / 359.7 MB, free: 8.656 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004053/0.2674, allocations: 226.5 kB / 359.9 MB, free: 8.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.2676, allocations: 349.9 kB / 360.3 MB, free: 8.082 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.269, allocations: 478 kB / 360.7 MB, free: 7.617 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.2705, allocations: 0.6431 MB / 361.4 MB, free: 6.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002867/0.2734, allocations: 1.137 MB / 362.5 MB, free: 5.711 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.2734, allocations: 4 kB / 362.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004766/0.2781, allocations: 1.87 MB / 364.4 MB, free: 3.797 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.2782, allocations: 8 kB / 364.4 MB, free: 3.789 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001815/0.2784, allocations: 116 kB / 364.5 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009104/0.2793, allocations: 292.9 kB / 364.8 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009397/0.2802, allocations: 196.7 kB / 365 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/0.2925, allocations: 13 MB / 378 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.294, allocations: 92.08 kB / 378.1 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.2942, allocations: 59.94 kB / 378.1 MB, free: 5.016 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.0009191/0.2951, allocations: 429.6 kB / 378.6 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006905/0.2958, allocations: 413.6 kB / 379 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005467/0.3012, allocations: 2.053 MB / 381 MB, free: 2.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.3013, allocations: 8 kB / 381 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.3013, allocations: 7.938 kB / 381 MB, free: 2.074 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.3013, allocations: 11.98 kB / 381 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/0.3038, allocations: 1.301 MB / 382.4 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001638/0.304, allocations: 112 kB / 382.5 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007665/0.3047, allocations: 135.8 kB / 382.6 MB, free: 500 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00086/0.3056, allocations: 284.3 kB / 382.9 MB, free: 184 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.3057, allocations: 43.97 kB / 382.9 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/0.3181, allocations: 13 MB / 395.9 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3181, allocations: 3.984 kB / 395.9 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006718/0.3248, allocations: 2.419 MB / 398.3 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.3261, allocations: 459.3 kB / 398.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005568/0.3266, allocations: 23.88 kB / 398.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.3279, allocations: 79.89 kB / 398.9 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004377/0.3283, allocations: 144.9 kB / 399 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.3284, allocations: 47.98 kB / 399.1 MB, free: 14.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003551/0.332, allocations: 1.77 MB / 400.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.332, allocations: 4 kB / 400.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002279/0.3343, allocations: 0.6634 MB / 401.5 MB, free: 12.45 MB / 362.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.001747/0.336, allocations: 0.8863 MB / 402.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005165/0.3412, allocations: 2.451 MB / 404.8 MB, free: 8.953 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3412, allocations: 0 / 404.8 MB, free: 8.953 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003284/0.3445, allocations: 1.897 MB / 406.7 MB, free: 6.906 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003492/0.348, allocations: 0.6591 MB / 407.4 MB, free: 6.242 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009415/0.3574, allocations: 4.645 MB / 412 MB, free: 1.535 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001757/0.3591, allocations: 1.108 MB / 413.2 MB, free: 396 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001509/0.3606, allocations: 387.4 kB / 413.5 MB, free: 4 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.3611, allocations: 172.5 kB / 413.7 MB, free: 15.83 MB / 378.7 MB Notification: Performance of SimCode: time 1.943e-06/0.3611, allocations: 0 / 413.7 MB, free: 15.83 MB / 378.7 MB Notification: Performance of Templates: time 0.1692/0.5303, allocations: 39.16 MB / 452.9 MB, free: 115.1 MB / 378.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.107739074039273]