Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 109.2 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001155, allocations: 188.3 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 47.92 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2447, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003639/0.2484, allocations: 2.871 MB / 404.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.2496, allocations: 0.7245 MB / 405 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.2498, allocations: 7.938 kB / 405 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.25, allocations: 51.5 kB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.2502, allocations: 87.2 kB / 405.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.2505, allocations: 99.8 kB / 405.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003734/0.2509, allocations: 374.4 kB / 405.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.2511, allocations: 119.2 kB / 405.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.2513, allocations: 143.5 kB / 405.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.2515, allocations: 147.4 kB / 406 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.451e-05/0.2515, allocations: 32 kB / 406.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.8e-05/0.2516, allocations: 28 kB / 406.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.562e-05/0.2517, allocations: 79.69 kB / 406.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.2518, allocations: 163.2 kB / 406.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.2522, allocations: 367.9 kB / 406.7 MB, free: 3.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2522, allocations: 0 / 406.7 MB, free: 3.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2522, allocations: 4 kB / 406.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.2522, allocations: 0 / 406.7 MB, free: 3.547 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.000998/0.2532, allocations: 0.6086 MB / 407.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.2533, allocations: 8.031 kB / 407.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.054e-05/0.2533, allocations: 40.56 kB / 407.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.2537, allocations: 261 kB / 407.6 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.006e-05/0.2538, allocations: 76.62 kB / 407.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/0.2538, allocations: 28.28 kB / 407.7 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/0.2543, allocations: 305.8 kB / 408 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.2543, allocations: 4 kB / 408 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.2544, allocations: 12 kB / 408 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.2544, allocations: 8 kB / 408 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003567/0.2547, allocations: 186.2 kB / 408.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.2564, allocations: 1.123 MB / 409.3 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.2567, allocations: 158.6 kB / 409.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.2568, allocations: 80.83 kB / 409.6 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.2569, allocations: 4 kB / 409.6 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.2571, allocations: 155.1 kB / 409.7 MB, free: 300 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.2571, allocations: 0 / 409.7 MB, free: 300 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001043/0.2582, allocations: 389.5 kB / 410.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.2582, allocations: 102.8 kB / 410.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.2584, allocations: 236.9 kB / 410.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.962e-05/0.2585, allocations: 29.7 kB / 410.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.2586, allocations: 184.1 kB / 410.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.077e-05/0.2587, allocations: 71.09 kB / 410.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/0.2588, allocations: 57.61 kB / 410.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.2589, allocations: 334.8 kB / 411.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.2591, allocations: 67.97 kB / 411.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.2592, allocations: 148.5 kB / 411.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/0.2595, allocations: 196.9 kB / 411.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2595, allocations: 0 / 411.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004345/0.26, allocations: 264.5 kB / 411.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.26, allocations: 11.94 kB / 411.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.26, allocations: 0 / 411.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002618/0.2603, allocations: 61.03 kB / 411.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.2605, allocations: 55.91 kB / 411.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.2619, allocations: 1.564 MB / 413.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.2622, allocations: 43.89 kB / 413.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.2622, allocations: 8 kB / 413.5 MB, free: 12.22 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001468/0.2623, allocations: 153.6 kB / 413.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.2624, allocations: 23.72 kB / 413.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.14e-05/0.2624, allocations: 30.17 kB / 413.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.2625, allocations: 0 / 413.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2625, allocations: 0 / 413.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.676e-05/0.2626, allocations: 116.8 kB / 413.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.873e-05/0.2626, allocations: 4 kB / 413.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.2628, allocations: 15.98 kB / 413.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.2629, allocations: 23.91 kB / 413.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005457/0.2634, allocations: 285.6 kB / 414.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004689/0.2639, allocations: 433.2 kB / 414.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001154/0.264, allocations: 72 kB / 414.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001347/0.2642, allocations: 156.5 kB / 414.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of Backend: time 2.2e-07/0.2642, allocations: 0 / 414.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007419/0.2649, allocations: 321 kB / 415.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of SimCode: time 0.001291/0.2662, allocations: 1.03 MB / 416.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of Templates: time 0.00704/0.2733, allocations: 3.159 MB / 419.3 MB, free: 6.336 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches