Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001622/0.001622, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001734/0.001734, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2548, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00499/0.2599, allocations: 3.161 MB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.2617, allocations: 0.8178 MB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003145/0.2621, allocations: 4 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002478/0.2623, allocations: 63.42 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.2627, allocations: 103 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004657/0.2631, allocations: 127.8 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005522/0.2637, allocations: 414.2 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.264, allocations: 143.7 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/0.2643, allocations: 159.4 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.2645, allocations: 179.2 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.2646, allocations: 36 kB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.715e-05/0.2647, allocations: 36 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.281e-05/0.2648, allocations: 87.67 kB / 414.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.265, allocations: 187.1 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005022/0.2655, allocations: 433.2 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2655, allocations: 0 / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2655, allocations: 0 / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.2655, allocations: 0 / 414.7 MB, free: 11.6 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.001075/0.2666, allocations: 0.6623 MB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.2667, allocations: 12.03 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.964e-05/0.2668, allocations: 66.72 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.267, allocations: 56.64 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.2674, allocations: 281.4 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.496e-05/0.2675, allocations: 80.62 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.125e-05/0.2676, allocations: 32.36 kB / 415.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005691/0.2682, allocations: 346.6 kB / 416.2 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.2682, allocations: 0 / 416.2 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.2682, allocations: 16 kB / 416.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.2682, allocations: 8 kB / 416.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004195/0.2687, allocations: 222.5 kB / 416.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.2705, allocations: 1.356 MB / 417.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.2709, allocations: 174.5 kB / 418 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.2711, allocations: 84.83 kB / 418 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.2711, allocations: 4 kB / 418.1 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003113/0.2714, allocations: 161 kB / 418.2 MB, free: 7.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.2714, allocations: 0 / 418.2 MB, free: 7.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001091/0.2725, allocations: 407.6 kB / 418.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.628e-05/0.2726, allocations: 102.8 kB / 418.7 MB, free: 7.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.2729, allocations: 270.6 kB / 419 MB, free: 6.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.2729, allocations: 25.7 kB / 419 MB, free: 6.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.2731, allocations: 216.3 kB / 419.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.923e-05/0.2732, allocations: 79.38 kB / 419.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.71e-05/0.2733, allocations: 58.03 kB / 419.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2734, allocations: 334.8 kB / 419.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.2736, allocations: 76.61 kB / 419.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.2738, allocations: 181.5 kB / 419.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/0.2742, allocations: 235.5 kB / 420.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.2742, allocations: 0 / 420.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006767/0.2749, allocations: 352.1 kB / 420.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2749, allocations: 4.344 kB / 420.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.2749, allocations: 8 kB / 420.5 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002532/0.2752, allocations: 56.81 kB / 420.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000257/0.2755, allocations: 59.91 kB / 420.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.2769, allocations: 1.58 MB / 422.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002546/0.2772, allocations: 47.7 kB / 422.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.2772, allocations: 16 kB / 422.3 MB, free: 3.445 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.0001682/0.2774, allocations: 145.8 kB / 422.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.13e-05/0.2774, allocations: 31.73 kB / 422.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.662e-05/0.2775, allocations: 34.17 kB / 422.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.2775, allocations: 8.062 kB / 422.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.2775, allocations: 0 / 422.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2775, allocations: 0 / 422.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003583/0.2779, allocations: 345.3 kB / 422.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2779, allocations: 0 / 422.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.2781, allocations: 31.98 kB / 422.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/0.2783, allocations: 60.75 kB / 422.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.2783, allocations: 7.984 kB / 422.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.2796, allocations: 1.406 MB / 424.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.2796, allocations: 3.984 kB / 424.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006997/0.2803, allocations: 357.2 kB / 424.7 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.2804, allocations: 116.9 kB / 424.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/0.2805, allocations: 8 kB / 424.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.2806, allocations: 19.98 kB / 424.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.383e-05/0.2807, allocations: 31.89 kB / 424.8 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.2807, allocations: 11.98 kB / 424.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.2809, allocations: 186 kB / 425 MB, free: 432 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2809, allocations: 0 / 425 MB, free: 432 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003838/0.2813, allocations: 91.84 kB / 425.1 MB, free: 340 kB / 334.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.001037/0.2824, allocations: 0.8909 MB / 426 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005936/0.283, allocations: 314.7 kB / 426.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.283, allocations: 0 / 426.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.2833, allocations: 208.4 kB / 426.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.2836, allocations: 46.66 kB / 426.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004243/0.2878, allocations: 2.904 MB / 429.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.2882, allocations: 0.7714 MB / 430.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.2884, allocations: 30.27 kB / 430.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.2885, allocations: 95.41 kB / 430.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2885, allocations: 0 / 430.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03342/0.3219, allocations: 6.067 MB / 436.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.02, allocations: 0 / 436.4 MB, free: 4.969 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches