Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001263/0.001263, allocations: 108.6 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001313/0.001313, allocations: 193.1 kB / 24.47 MB, free: 4.152 MB / 14.72 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 1.401/1.401, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 47.92 kB / 371.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2405, allocations: 52.17 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004688/0.2452, allocations: 3.191 MB / 427.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.2466, allocations: 0.7555 MB / 427.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.2468, allocations: 8 kB / 427.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.2469, allocations: 55.42 kB / 427.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002087/0.2472, allocations: 107 kB / 428 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/0.2475, allocations: 115.7 kB / 428.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004751/0.248, allocations: 414.2 kB / 428.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.2482, allocations: 100.3 kB / 428.6 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002219/0.2484, allocations: 163.4 kB / 428.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.2487, allocations: 175.2 kB / 428.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/0.2487, allocations: 36 kB / 429 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.147e-05/0.2488, allocations: 39.94 kB / 429 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.013e-05/0.2489, allocations: 83.73 kB / 429.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.2491, allocations: 187.1 kB / 429.3 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004717/0.2495, allocations: 419.5 kB / 429.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2495, allocations: 3.938 kB / 429.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.2495, allocations: 0 / 429.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.2495, allocations: 0 / 429.7 MB, free: 8.875 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001086/0.2506, allocations: 0.587 MB / 430.3 MB, free: 8.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.2507, allocations: 12.03 kB / 430.3 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.837e-05/0.2508, allocations: 40.7 kB / 430.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.2512, allocations: 219.5 kB / 430.5 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.2513, allocations: 132 kB / 430.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.573e-05/0.2514, allocations: 36.38 kB / 430.7 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.2519, allocations: 338.8 kB / 431 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.252, allocations: 0 / 431 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.252, allocations: 12 kB / 431.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.252, allocations: 8 kB / 431.1 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.2524, allocations: 226.4 kB / 431.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.2544, allocations: 1.314 MB / 432.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/0.2547, allocations: 150.6 kB / 432.7 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.2549, allocations: 84.77 kB / 432.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.2549, allocations: 11.97 kB / 432.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002939/0.2552, allocations: 155.9 kB / 433 MB, free: 5.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.2552, allocations: 0 / 433 MB, free: 5.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001079/0.2563, allocations: 328.4 kB / 433.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.2564, allocations: 110.8 kB / 433.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.2567, allocations: 261.8 kB / 433.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.2567, allocations: 33.7 kB / 433.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.2569, allocations: 208.3 kB / 433.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.408e-05/0.2569, allocations: 79.36 kB / 434 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.257, allocations: 58.03 kB / 434 MB, free: 4.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.2572, allocations: 334.8 kB / 434.4 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.2574, allocations: 76.61 kB / 434.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.2576, allocations: 181.5 kB / 434.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003828/0.258, allocations: 248.6 kB / 434.9 MB, free: 3.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.258, allocations: 4 kB / 434.9 MB, free: 3.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007205/0.2587, allocations: 340.5 kB / 435.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.2587, allocations: 11.44 kB / 435.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.2587, allocations: 0 / 435.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002829/0.259, allocations: 56.81 kB / 435.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002642/0.2593, allocations: 59.91 kB / 435.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.2608, allocations: 1.473 MB / 436.8 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.261, allocations: 55.7 kB / 436.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.261, allocations: 11.94 kB / 436.9 MB, free: 1.211 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001815/0.2612, allocations: 149.7 kB / 437 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.124e-05/0.2613, allocations: 31.92 kB / 437 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.904e-05/0.2613, allocations: 34.2 kB / 437.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2613, allocations: 4 kB / 437.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2613, allocations: 0 / 437.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2614, allocations: 0 / 437.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003692/0.2617, allocations: 312.5 kB / 437.4 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2617, allocations: 0 / 437.4 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001995/0.2619, allocations: 35.98 kB / 437.4 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001984/0.2621, allocations: 60.69 kB / 437.5 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.2621, allocations: 7.984 kB / 437.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.2635, allocations: 1.307 MB / 438.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2635, allocations: 3.938 kB / 438.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007946/0.2643, allocations: 349.6 kB / 439.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.2644, allocations: 43.8 kB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.962e-05/0.2644, allocations: 4 kB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.2646, allocations: 23.97 kB / 439.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.2647, allocations: 35.88 kB / 439.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.2648, allocations: 12.06 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002117/0.265, allocations: 185.2 kB / 439.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.265, allocations: 0 / 439.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004619/0.2654, allocations: 87.84 kB / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001686/0.2656, allocations: 110.2 kB / 439.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006894/0.2663, allocations: 302.7 kB / 439.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2663, allocations: 0 / 439.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000336/0.2666, allocations: 198.5 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.2669, allocations: 28.48 kB / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.2685, allocations: 0.7177 MB / 440.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.2689, allocations: 0.7675 MB / 441.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.015e-05/0.269, allocations: 23.44 kB / 441.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.269, allocations: 4 kB / 441.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of Templates: time 0.007366/0.2763, allocations: 4.665 MB / 446.3 MB, free: 7.469 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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: 7.589671151014045]