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.001334/0.001334, allocations: 109.5 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.00135/0.00135, allocations: 183.1 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.404/1.404, allocations: 225.6 MB / 252.5 MB, free: 13 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 39.94 kB / 370.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2647, allocations: 52.18 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004737/0.2694, allocations: 3.173 MB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.2711, allocations: 0.7594 MB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002239/0.2713, allocations: 11.94 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.2715, allocations: 59.42 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.2718, allocations: 99.06 kB / 426.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003907/0.2722, allocations: 111.8 kB / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004732/0.2726, allocations: 414.2 kB / 427.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.2728, allocations: 104.2 kB / 427.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002161/0.2731, allocations: 167.4 kB / 427.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.2733, allocations: 175.2 kB / 427.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.624e-05/0.2734, allocations: 36 kB / 427.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.85e-05/0.2734, allocations: 36 kB / 427.8 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.598e-05/0.2735, allocations: 71.77 kB / 427.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.2737, allocations: 195.1 kB / 428 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004748/0.2742, allocations: 426.6 kB / 428.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2742, allocations: 0 / 428.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2742, allocations: 0 / 428.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.2742, allocations: 0 / 428.4 MB, free: 8.746 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.001133/0.2753, allocations: 0.5869 MB / 429 MB, free: 8.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.2754, allocations: 8.031 kB / 429 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.689e-05/0.2754, allocations: 70.72 kB / 429.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.976e-05/0.2755, allocations: 40.7 kB / 429.1 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004462/0.276, allocations: 231.5 kB / 429.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.2761, allocations: 124 kB / 429.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-05/0.2761, allocations: 32.38 kB / 429.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006013/0.2767, allocations: 338.7 kB / 429.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.2768, allocations: 3.938 kB / 429.9 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.2768, allocations: 16 kB / 429.9 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.2768, allocations: 12 kB / 429.9 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.2773, allocations: 210.5 kB / 430.1 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.2792, allocations: 1.314 MB / 431.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.2796, allocations: 174.4 kB / 431.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.2798, allocations: 80.83 kB / 431.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.2798, allocations: 0 / 431.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003008/0.2801, allocations: 155.4 kB / 431.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.2801, allocations: 0 / 431.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001093/0.2812, allocations: 336.2 kB / 432.1 MB, free: 4.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.676e-05/0.2813, allocations: 110.8 kB / 432.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.2815, allocations: 253.9 kB / 432.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.2816, allocations: 33.7 kB / 432.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.2817, allocations: 208.2 kB / 432.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.119e-05/0.2818, allocations: 75.44 kB / 432.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.734e-05/0.2819, allocations: 54.03 kB / 432.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.2821, allocations: 346.7 kB / 433.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.2822, allocations: 76.62 kB / 433.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.2825, allocations: 177.4 kB / 433.4 MB, free: 3.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003708/0.2828, allocations: 249.4 kB / 433.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2828, allocations: 0 / 433.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006805/0.2835, allocations: 344.5 kB / 434 MB, free: 2.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2835, allocations: 11.94 kB / 434 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2835, allocations: 4 kB / 434 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002777/0.2838, allocations: 52.97 kB / 434.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.2841, allocations: 67.91 kB / 434.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.2856, allocations: 1.468 MB / 435.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002558/0.2858, allocations: 43.72 kB / 435.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.2859, allocations: 12 kB / 435.7 MB, free: 1.008 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.0001898/0.2861, allocations: 157.8 kB / 435.8 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-05/0.2861, allocations: 27.8 kB / 435.9 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.363e-05/0.2861, allocations: 30.27 kB / 435.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2861, allocations: 0 / 435.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2862, allocations: 0 / 435.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.2862, allocations: 7.969 kB / 435.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003463/0.2865, allocations: 308.5 kB / 436.2 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2865, allocations: 0 / 436.2 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002079/0.2867, allocations: 51.91 kB / 436.2 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001769/0.2869, allocations: 44.77 kB / 436.3 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.2869, allocations: 11.98 kB / 436.3 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.2881, allocations: 1.311 MB / 437.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2881, allocations: 0 / 437.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000705/0.2888, allocations: 352.9 kB / 438 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.479e-05/0.2889, allocations: 39.8 kB / 438 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.163e-05/0.289, allocations: 8 kB / 438 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.2891, allocations: 28.05 kB / 438 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.87e-05/0.2892, allocations: 35.81 kB / 438.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.2892, allocations: 8 kB / 438.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.2894, allocations: 181.2 kB / 438.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2894, allocations: 4 kB / 438.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003925/0.2898, allocations: 95.72 kB / 438.3 MB, free: 14.14 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.001108/0.2909, allocations: 0.8863 MB / 439.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006523/0.2916, allocations: 299 kB / 439.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2916, allocations: 0 / 439.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003281/0.2919, allocations: 198.5 kB / 439.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.2922, allocations: 32.42 kB / 439.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0047/0.2969, allocations: 2.905 MB / 442.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.2973, allocations: 0.7716 MB / 443.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.2974, allocations: 26.28 kB / 443.4 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.2975, allocations: 91.41 kB / 443.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2975, allocations: 4 kB / 443.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03852/0.336, allocations: 6.276 MB / 449.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.91, allocations: 0 / 449.8 MB, free: 2.594 MB / 350.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv","/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: 15.98550554999747]