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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 112.4 kB / 20.43 MB, free: 1.457 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.001488/0.001488, allocations: 180.5 kB / 23.72 MB, free: 4.699 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.422/1.422, allocations: 225.6 MB / 252.5 MB, free: 13.02 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 47.92 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2487, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004555/0.2533, allocations: 2.9 MB / 425.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.2547, allocations: 0.7439 MB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.2548, allocations: 4 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.255, allocations: 51.44 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.2552, allocations: 91.19 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003637/0.2556, allocations: 107.7 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004472/0.256, allocations: 370.4 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.2562, allocations: 87.67 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.2564, allocations: 135.5 kB / 427.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.2566, allocations: 155.4 kB / 427.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.345e-05/0.2567, allocations: 32 kB / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.393e-05/0.2567, allocations: 32 kB / 427.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.91e-05/0.2568, allocations: 71.75 kB / 427.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.257, allocations: 163.2 kB / 427.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000441/0.2574, allocations: 370.9 kB / 427.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2574, allocations: 0 / 427.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2574, allocations: 0 / 427.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.2574, allocations: 0 / 427.9 MB, free: 9.297 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001072/0.2585, allocations: 0.5455 MB / 428.5 MB, free: 8.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2585, allocations: 16.02 kB / 428.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.448e-05/0.2586, allocations: 58.73 kB / 428.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.241e-05/0.2587, allocations: 36.75 kB / 428.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.2591, allocations: 202.7 kB / 428.8 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.2592, allocations: 132 kB / 428.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.896e-05/0.2593, allocations: 24.38 kB / 428.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000503/0.2598, allocations: 301.9 kB / 429.2 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.2598, allocations: 4 kB / 429.2 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.2598, allocations: 12 kB / 429.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.2598, allocations: 8 kB / 429.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000353/0.2602, allocations: 190.5 kB / 429.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.2619, allocations: 1.078 MB / 430.5 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003041/0.2622, allocations: 154.5 kB / 430.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.2624, allocations: 68.84 kB / 430.7 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.2624, allocations: 3.984 kB / 430.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/0.2627, allocations: 164.4 kB / 430.9 MB, free: 6.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.462e-06/0.2627, allocations: 7.938 kB / 430.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001016/0.2637, allocations: 296.1 kB / 431.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.456e-05/0.2638, allocations: 106.8 kB / 431.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.264, allocations: 236.8 kB / 431.5 MB, free: 5.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.2641, allocations: 29.7 kB / 431.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.2642, allocations: 188.5 kB / 431.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/0.2643, allocations: 67.44 kB / 431.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.2644, allocations: 57.69 kB / 431.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2645, allocations: 338.8 kB / 432.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.2647, allocations: 59.98 kB / 432.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.2648, allocations: 157.3 kB / 432.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.2651, allocations: 194 kB / 432.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2651, allocations: 4 kB / 432.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004309/0.2656, allocations: 272.5 kB / 432.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2656, allocations: 8.219 kB / 432.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.2656, allocations: 4 kB / 432.9 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002593/0.2658, allocations: 52.81 kB / 432.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/0.2661, allocations: 47.92 kB / 433 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.2675, allocations: 1.484 MB / 434.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.2677, allocations: 39.83 kB / 434.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.2677, allocations: 11.98 kB / 434.5 MB, free: 2.25 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.0001487/0.2678, allocations: 141.7 kB / 434.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.433e-05/0.2679, allocations: 27.86 kB / 434.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.2679, allocations: 30.33 kB / 434.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.2679, allocations: 4 kB / 434.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.2679, allocations: 0 / 434.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.2679, allocations: 0 / 434.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003431/0.2683, allocations: 292.4 kB / 435 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2683, allocations: 4 kB / 435 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.2685, allocations: 31.98 kB / 435 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001808/0.2686, allocations: 52.81 kB / 435.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.2687, allocations: 7.984 kB / 435.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.2699, allocations: 1.314 MB / 436.4 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2699, allocations: 0 / 436.4 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006505/0.2705, allocations: 332.8 kB / 436.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.177e-05/0.2706, allocations: 43.77 kB / 436.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.2707, allocations: 8 kB / 436.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.2708, allocations: 15.98 kB / 436.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.551e-05/0.2709, allocations: 35.94 kB / 436.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.2709, allocations: 4 kB / 436.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001585/0.2711, allocations: 164.5 kB / 437 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2711, allocations: 4.062 kB / 437 MB, free: 15.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003564/0.2714, allocations: 79.84 kB / 437.1 MB, free: 15.49 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009811/0.2724, allocations: 0.8667 MB / 437.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006141/0.273, allocations: 282.4 kB / 438.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.273, allocations: 0 / 438.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003345/0.2734, allocations: 197.9 kB / 438.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.2737, allocations: 40.08 kB / 438.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003724/0.2774, allocations: 2.603 MB / 441 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.2778, allocations: 0.7519 MB / 441.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.472e-05/0.2779, allocations: 30.27 kB / 441.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.278, allocations: 83.41 kB / 441.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.278, allocations: 0 / 441.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/0.3152, allocations: 5.846 MB / 447.8 MB, free: 4.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/12.92, allocations: 9.719 kB / 447.8 MB, free: 4.746 MB / 350.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.552338222001708]