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.001766/0.001766, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001771/0.001771, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.425/1.425, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001482/0.001482, allocations: 51.91 kB / 377.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2472, allocations: 53.35 MB / 431.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004691/0.2519, allocations: 2.923 MB / 434.1 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.2534, allocations: 0.7789 MB / 434.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.2535, allocations: 4 kB / 434.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.2537, allocations: 47.5 kB / 434.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.2539, allocations: 91.19 kB / 435 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.2542, allocations: 107.8 kB / 435.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004546/0.2547, allocations: 370.4 kB / 435.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.2549, allocations: 91.67 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.2551, allocations: 139.5 kB / 435.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.2553, allocations: 155.3 kB / 435.8 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.861e-05/0.2553, allocations: 28 kB / 435.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.3e-05/0.2554, allocations: 32 kB / 435.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-05/0.2555, allocations: 75.73 kB / 436 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.2556, allocations: 163.3 kB / 436.1 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004254/0.2561, allocations: 366.8 kB / 436.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2561, allocations: 4 kB / 436.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2561, allocations: 0 / 436.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.2561, allocations: 0 / 436.5 MB, free: 1.547 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.001022/0.2571, allocations: 0.5378 MB / 437 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.2571, allocations: 12.03 kB / 437 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/0.2572, allocations: 62.73 kB / 437.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.379e-05/0.2573, allocations: 36.7 kB / 437.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003897/0.2577, allocations: 206.7 kB / 437.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.2578, allocations: 136 kB / 437.5 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/0.2579, allocations: 28.38 kB / 437.5 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.2583, allocations: 301.9 kB / 437.8 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2583, allocations: 0 / 437.8 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.2584, allocations: 16 kB / 437.8 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.2584, allocations: 4 kB / 437.8 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.2587, allocations: 190.5 kB / 438 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.2604, allocations: 1.078 MB / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/0.2607, allocations: 150.5 kB / 439.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.2609, allocations: 72.83 kB / 439.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.2609, allocations: 4 kB / 439.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.2612, allocations: 157.8 kB / 439.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.2612, allocations: 7.938 kB / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009882/0.2622, allocations: 300.2 kB / 439.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.732e-05/0.2623, allocations: 106.8 kB / 439.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.2625, allocations: 236.8 kB / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.2626, allocations: 29.7 kB / 440.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.2627, allocations: 188.5 kB / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.792e-05/0.2628, allocations: 63.44 kB / 440.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.527e-05/0.2629, allocations: 61.69 kB / 440.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.263, allocations: 338.8 kB / 440.7 MB, free: 13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.2631, allocations: 67.97 kB / 440.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.2633, allocations: 140.6 kB / 441 MB, free: 12.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.2636, allocations: 204.1 kB / 441.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2636, allocations: 3.984 kB / 441.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004206/0.264, allocations: 264.6 kB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.264, allocations: 4.219 kB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.2641, allocations: 8 kB / 441.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002635/0.2643, allocations: 56.75 kB / 441.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.2645, allocations: 47.92 kB / 441.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.2659, allocations: 1.473 MB / 443 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.2661, allocations: 35.83 kB / 443 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.2661, allocations: 15.98 kB / 443.1 MB, free: 10.52 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.0001667/0.2663, allocations: 151.3 kB / 443.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.698e-05/0.2663, allocations: 23.86 kB / 443.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.424e-05/0.2664, allocations: 30.27 kB / 443.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2664, allocations: 4.062 kB / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.2664, allocations: 0 / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2664, allocations: 4 kB / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.2667, allocations: 292.4 kB / 443.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2667, allocations: 0 / 443.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.2669, allocations: 31.98 kB / 443.6 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.2671, allocations: 52.81 kB / 443.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.2671, allocations: 7.984 kB / 443.6 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.2683, allocations: 1.33 MB / 445 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2683, allocations: 0 / 445 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006165/0.2689, allocations: 335.3 kB / 445.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.714e-05/0.269, allocations: 43.73 kB / 445.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.269, allocations: 4 kB / 445.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.2692, allocations: 15.98 kB / 445.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.36e-05/0.2693, allocations: 31.94 kB / 445.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.2693, allocations: 8 kB / 445.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.2695, allocations: 164.5 kB / 445.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2695, allocations: 0 / 445.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.2698, allocations: 83.95 kB / 445.6 MB, free: 7.746 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.0009534/0.2708, allocations: 0.8611 MB / 446.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005408/0.2713, allocations: 286.5 kB / 446.8 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2713, allocations: 0 / 446.8 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.2716, allocations: 189.4 kB / 447 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.2719, allocations: 35.55 kB / 447 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003661/0.2755, allocations: 2.596 MB / 449.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.2759, allocations: 0.7597 MB / 450.4 MB, free: 2.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.704e-05/0.276, allocations: 22.28 kB / 450.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.2761, allocations: 87.41 kB / 450.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2761, allocations: 0 / 450.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03702/0.3131, allocations: 5.859 MB / 456.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.52, allocations: 7.375 kB / 456.3 MB, free: 13.02 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] Reference file matches [Calling sys.exit(0), Time elapsed: 15.194232967998687]