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.001432/0.001432, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.004031/0.004031, allocations: 164.9 kB / 25.61 MB, free: 8.902 MB / 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 0.9755/0.9755, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.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.042e-06/1.042e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.773e-05, allocations: 2.312 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01037/0.01039, allocations: 13.21 MB / 287.4 MB, free: 7.176 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02112/0.03151, allocations: 19.07 MB / 306.5 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002402/0.03391, allocations: 193.8 kB / 306.6 MB, free: 3.859 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002604/0.03651, allocations: 1.044 MB / 307.7 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007497/0.04401, allocations: 2.401 MB / 310.1 MB, free: 396 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004484/0.04849, allocations: 1.453 MB / 311.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008892/0.05739, allocations: 6.827 MB / 318.4 MB, free: 8.078 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005388/0.05793, allocations: 245 kB / 318.6 MB, free: 7.805 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003645/0.06157, allocations: 3.037 MB / 321.6 MB, free: 4.762 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009835/0.06255, allocations: 0.8058 MB / 322.5 MB, free: 3.953 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.0627, allocations: 76 kB / 322.5 MB, free: 3.879 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002846/0.06554, allocations: 1.206 MB / 323.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002565/0.0658, allocations: 329.6 kB / 324.1 MB, free: 2.348 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007979/0.0666, allocations: 0.7243 MB / 324.8 MB, free: 1.621 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003205/0.0698, allocations: 2.771 MB / 327.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.06981, allocations: 0 / 327.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.06981, allocations: 0 / 327.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.966e-05/0.06985, allocations: 0 / 327.5 MB, free: 14.84 MB / 314.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.003478/0.07333, allocations: 3.83 MB / 331.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.07336, allocations: 12.03 kB / 331.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003251/0.07369, allocations: 437.5 kB / 331.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.07582, allocations: 2.635 MB / 334.5 MB, free: 7.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.07585, allocations: 37 kB / 334.5 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.514e-05/0.07593, allocations: 55.92 kB / 334.5 MB, free: 7.676 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006074/0.07654, allocations: 0.5006 MB / 335 MB, free: 7.168 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.07655, allocations: 0 / 335 MB, free: 7.168 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.997e-05/0.0766, allocations: 16 kB / 335.1 MB, free: 7.152 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.07662, allocations: 23.92 kB / 335.1 MB, free: 7.129 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006659/0.07729, allocations: 411.7 kB / 335.5 MB, free: 6.727 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002492/0.07978, allocations: 2.234 MB / 337.7 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004854/0.08026, allocations: 412.6 kB / 338.1 MB, free: 4.039 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005082/0.08077, allocations: 0.5585 MB / 338.7 MB, free: 3.484 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1228/0.2036, allocations: 15.11 MB / 353.8 MB, free: 56.26 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003781/0.204, allocations: 396.2 kB / 354.2 MB, free: 56.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 3.456e-06/0.204, allocations: 0.5625 kB / 354.2 MB, free: 56.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.00325/0.2072, allocations: 2.479 MB / 356.7 MB, free: 55.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.2073, allocations: 71.81 kB / 356.7 MB, free: 55.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001514/0.2088, allocations: 2.862 MB / 359.6 MB, free: 53.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.264e-05/0.2088, allocations: 41.7 kB / 359.6 MB, free: 53.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006603/0.2095, allocations: 1.499 MB / 361.1 MB, free: 52.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.2097, allocations: 354.3 kB / 361.5 MB, free: 52.15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.2098, allocations: 248.5 kB / 361.7 MB, free: 51.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.615e-05/0.2099, allocations: 0.5201 MB / 362.2 MB, free: 51.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.2101, allocations: 158.1 kB / 362.4 MB, free: 51.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.2103, allocations: 415.4 kB / 362.8 MB, free: 50.8 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004577/0.2108, allocations: 0.6246 MB / 363.4 MB, free: 50.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2108, allocations: 3.938 kB / 363.4 MB, free: 50.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001118/0.2119, allocations: 1.263 MB / 364.7 MB, free: 48.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.2119, allocations: 11.98 kB / 364.7 MB, free: 48.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.665e-05/0.212, allocations: 116 kB / 364.8 MB, free: 48.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003488/0.2123, allocations: 252.4 kB / 365.1 MB, free: 48.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003864/0.2127, allocations: 181.7 kB / 365.2 MB, free: 48.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003972/0.2167, allocations: 17.35 MB / 382.6 MB, free: 30 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007397/0.2174, allocations: 63.94 kB / 382.7 MB, free: 29.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.395e-05/0.2175, allocations: 48 kB / 382.7 MB, free: 29.89 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.0003532/0.2179, allocations: 230 kB / 382.9 MB, free: 29.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.2181, allocations: 413.5 kB / 383.3 MB, free: 29.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.2197, allocations: 1.491 MB / 384.8 MB, free: 27.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.2197, allocations: 8 kB / 384.8 MB, free: 27.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.2197, allocations: 4 kB / 384.8 MB, free: 27.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.2197, allocations: 7.984 kB / 384.8 MB, free: 27.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008816/0.2206, allocations: 1.09 MB / 385.9 MB, free: 26.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.84e-05/0.2207, allocations: 112 kB / 386 MB, free: 26.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002783/0.221, allocations: 111.3 kB / 386.1 MB, free: 26.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003176/0.2213, allocations: 247.8 kB / 386.4 MB, free: 26.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-05/0.2213, allocations: 47.92 kB / 386.4 MB, free: 26.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003253/0.2246, allocations: 17.34 MB / 403.8 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2246, allocations: 0 / 403.8 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.226, allocations: 1.489 MB / 405.3 MB, free: 6.441 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004405/0.2264, allocations: 453.8 kB / 405.7 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001913/0.2266, allocations: 20 kB / 405.7 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004341/0.2271, allocations: 55.94 kB / 405.8 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.2273, allocations: 140.2 kB / 405.9 MB, free: 5.789 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.178e-05/0.2273, allocations: 43.98 kB / 406 MB, free: 5.746 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000784/0.2281, allocations: 1.508 MB / 407.5 MB, free: 4.398 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2281, allocations: 4 kB / 407.5 MB, free: 4.395 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001037/0.2292, allocations: 0.662 MB / 408.1 MB, free: 3.77 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.0009174/0.2301, allocations: 0.9666 MB / 409.1 MB, free: 2.988 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.2312, allocations: 2.463 MB / 411.6 MB, free: 364 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2313, allocations: 0 / 411.6 MB, free: 364 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.2325, allocations: 2.196 MB / 413.8 MB, free: 13.99 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.234, allocations: 0.655 MB / 414.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004157/0.2381, allocations: 4.304 MB / 418.7 MB, free: 9.016 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.2384, allocations: 408.9 kB / 419.1 MB, free: 8.59 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007149/0.2391, allocations: 395.4 kB / 419.5 MB, free: 8.199 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/0.2403, allocations: 0.7244 MB / 420.2 MB, free: 7.484 MB / 330.7 MB Notification: Performance of SimCode: time 1.453e-06/0.2403, allocations: 0 / 420.2 MB, free: 7.484 MB / 330.7 MB Notification: Performance of Templates: time 0.05355/0.2939, allocations: 45.16 MB / 465.4 MB, free: 11.04 MB / 378.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.103053010068834]