Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001908/0.001908, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.002177/0.002177, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 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.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002469/0.002469, allocations: 47.92 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2632, allocations: 53.36 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004196/0.2674, allocations: 2.703 MB / 433.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.2688, allocations: 0.7301 MB / 434.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.2689, allocations: 15.88 kB / 434.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.2691, allocations: 47.5 kB / 434.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.2693, allocations: 87.19 kB / 434.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.2696, allocations: 107.8 kB / 434.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000391/0.27, allocations: 378.4 kB / 435.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.2702, allocations: 75.69 kB / 435.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.2703, allocations: 139.6 kB / 435.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.2705, allocations: 135.3 kB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.57e-05/0.2706, allocations: 32 kB / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.563e-05/0.2707, allocations: 28 kB / 435.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.326e-05/0.2707, allocations: 71.75 kB / 435.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.2709, allocations: 131.5 kB / 435.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004099/0.2713, allocations: 370.5 kB / 436.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2713, allocations: 0 / 436.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.2713, allocations: 8 kB / 436.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2713, allocations: 0 / 436.1 MB, free: 1.578 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.0009814/0.2723, allocations: 0.53 MB / 436.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2723, allocations: 8.031 kB / 436.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.2724, allocations: 70.72 kB / 436.7 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.174e-05/0.2725, allocations: 44.64 kB / 436.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000372/0.2729, allocations: 210.7 kB / 437 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.273, allocations: 124 kB / 437.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.273, allocations: 32.38 kB / 437.1 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005516/0.2736, allocations: 353.2 kB / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2736, allocations: 3.938 kB / 437.5 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.2736, allocations: 12 kB / 437.5 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.2737, allocations: 8 kB / 437.5 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/0.274, allocations: 194.5 kB / 437.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.2756, allocations: 1.023 MB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.2759, allocations: 142.5 kB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.276, allocations: 76.83 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.276, allocations: 0 / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002842/0.2763, allocations: 205.2 kB / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.2763, allocations: 0 / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009585/0.2773, allocations: 313.5 kB / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.2774, allocations: 110.8 kB / 439.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002257/0.2776, allocations: 232.8 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.2776, allocations: 33.7 kB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.2777, allocations: 180.5 kB / 440 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.397e-05/0.2778, allocations: 71.42 kB / 440 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.771e-05/0.2779, allocations: 57.66 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2781, allocations: 338.8 kB / 440.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.2782, allocations: 67.97 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.2784, allocations: 200 kB / 440.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.2787, allocations: 184.2 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2787, allocations: 0 / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004298/0.2791, allocations: 276.5 kB / 441.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.2791, allocations: 8 kB / 441.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2791, allocations: 0 / 441.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002529/0.2794, allocations: 52.81 kB / 441.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.2796, allocations: 56.14 kB / 441.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.281, allocations: 1.465 MB / 442.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002167/0.2812, allocations: 39.86 kB / 442.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.2812, allocations: 8.156 kB / 442.8 MB, free: 10.43 MB / 350.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.0001697/0.2814, allocations: 157.6 kB / 442.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.2814, allocations: 27.86 kB / 442.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.723e-05/0.2815, allocations: 26.27 kB / 443 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2815, allocations: 4 kB / 443 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.2815, allocations: 0 / 443 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.2815, allocations: 0 / 443 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003359/0.2818, allocations: 276.4 kB / 443.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2818, allocations: 0 / 443.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.282, allocations: 31.98 kB / 443.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.2822, allocations: 52.81 kB / 443.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.2822, allocations: 4 kB / 443.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.2834, allocations: 1.322 MB / 444.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2834, allocations: 0 / 444.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006339/0.284, allocations: 327.1 kB / 445 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.093e-05/0.2841, allocations: 43.73 kB / 445 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.2841, allocations: 4 kB / 445 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.2843, allocations: 15.98 kB / 445 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.077e-05/0.2844, allocations: 36.09 kB / 445.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.2844, allocations: 8 kB / 445.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001535/0.2846, allocations: 156.5 kB / 445.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2846, allocations: 0 / 445.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003573/0.2849, allocations: 87.83 kB / 445.3 MB, free: 7.691 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.001013/0.2859, allocations: 0.8704 MB / 446.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005477/0.2865, allocations: 282.5 kB / 446.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2865, allocations: 0 / 446.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.2868, allocations: 190.6 kB / 446.6 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.287, allocations: 41.75 kB / 446.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.2906, allocations: 2.599 MB / 449.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.2907, allocations: 154.8 kB / 449.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.384e-05/0.2908, allocations: 26.27 kB / 449.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.2909, allocations: 83.41 kB / 449.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2909, allocations: 0 / 449.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04031/0.3312, allocations: 6.304 MB / 455.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.79, allocations: 13.78 kB / 455.9 MB, free: 13.12 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:time,inductor1.i,inductor2.i [Calling sys.exit(0), Time elapsed: 15.554057154338807]