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.001816/0.001816, allocations: 103.5 kB / 20.43 MB, free: 1.199 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.002096/0.002096, allocations: 194.2 kB / 23.71 MB, free: 4.426 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.432/1.432, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001518/0.001518, allocations: 47.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2572, allocations: 52.19 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004162/0.2613, allocations: 2.908 MB / 425.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.2625, allocations: 0.7205 MB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.2627, allocations: 4 kB / 426.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.2629, allocations: 63.42 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.263, allocations: 107 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.2634, allocations: 111.8 kB / 426.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004206/0.2638, allocations: 410.2 kB / 426.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.264, allocations: 101.9 kB / 427 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.2642, allocations: 163.5 kB / 427.1 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.2644, allocations: 147.2 kB / 427.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.886e-05/0.2645, allocations: 36 kB / 427.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.373e-05/0.2645, allocations: 40 kB / 427.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.742e-05/0.2646, allocations: 83.67 kB / 427.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.2648, allocations: 155.3 kB / 427.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004318/0.2652, allocations: 422.3 kB / 428 MB, free: 8.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2652, allocations: 4 kB / 428 MB, free: 8.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2652, allocations: 0 / 428 MB, free: 8.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.2652, allocations: 0 / 428 MB, free: 8.93 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.001014/0.2662, allocations: 0.587 MB / 428.6 MB, free: 8.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.2663, allocations: 8.031 kB / 428.6 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.58e-05/0.2663, allocations: 70.72 kB / 428.7 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.718e-05/0.2664, allocations: 44.7 kB / 428.7 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003936/0.2668, allocations: 215.6 kB / 428.9 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.2669, allocations: 128 kB / 429.1 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.637e-05/0.267, allocations: 36.36 kB / 429.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005873/0.2676, allocations: 402 kB / 429.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2676, allocations: 0 / 429.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.2676, allocations: 12 kB / 429.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.2676, allocations: 8 kB / 429.5 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004199/0.2681, allocations: 218.5 kB / 429.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.2699, allocations: 1.24 MB / 431 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.2702, allocations: 158.5 kB / 431.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.2704, allocations: 88.81 kB / 431.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.2704, allocations: 3.938 kB / 431.2 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003058/0.2707, allocations: 207.2 kB / 431.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 3.917e-06/0.2707, allocations: 7.922 kB / 431.4 MB, free: 5.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001047/0.2718, allocations: 335.9 kB / 431.7 MB, free: 4.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.485e-05/0.2719, allocations: 106.8 kB / 431.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.2721, allocations: 265.8 kB / 432.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.2722, allocations: 29.7 kB / 432.1 MB, free: 4.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.2723, allocations: 208.3 kB / 432.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.899e-05/0.2724, allocations: 79.41 kB / 432.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.201e-05/0.2725, allocations: 57.98 kB / 432.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2726, allocations: 338.8 kB / 432.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.2728, allocations: 76.61 kB / 432.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002687/0.2731, allocations: 232.9 kB / 433.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.2734, allocations: 244.7 kB / 433.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.2734, allocations: 0 / 433.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006846/0.2741, allocations: 344.6 kB / 433.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.2741, allocations: 8.031 kB / 433.7 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.2741, allocations: 4 kB / 433.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.2744, allocations: 56.81 kB / 433.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.2746, allocations: 63.91 kB / 433.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.276, allocations: 1.468 MB / 435.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.2762, allocations: 39.77 kB / 435.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.2763, allocations: 16 kB / 435.3 MB, free: 1.07 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.0001542/0.2764, allocations: 145.9 kB / 435.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.221e-05/0.2765, allocations: 39.73 kB / 435.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.467e-05/0.2765, allocations: 30.28 kB / 435.5 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.2765, allocations: 4 kB / 435.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2765, allocations: 3.984 kB / 435.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2765, allocations: 0 / 435.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003118/0.2768, allocations: 280.5 kB / 435.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2768, allocations: 0 / 435.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.277, allocations: 39.86 kB / 435.9 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001785/0.2772, allocations: 60.75 kB / 435.9 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.2772, allocations: 3.984 kB / 435.9 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.2784, allocations: 1.311 MB / 437.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2784, allocations: 4.156 kB / 437.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000701/0.2791, allocations: 352.9 kB / 437.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.654e-05/0.2792, allocations: 47.77 kB / 437.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.2792, allocations: 0 / 437.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.2794, allocations: 23.97 kB / 437.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.267e-05/0.2795, allocations: 27.89 kB / 437.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.2795, allocations: 16.05 kB / 437.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001804/0.2797, allocations: 181.2 kB / 437.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2797, allocations: 0 / 437.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003589/0.2801, allocations: 87.84 kB / 438 MB, free: 14.25 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.001034/0.2811, allocations: 0.8824 MB / 438.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005843/0.2817, allocations: 306.5 kB / 439.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2817, allocations: 0 / 439.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002981/0.282, allocations: 198 kB / 439.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.2822, allocations: 33.12 kB / 439.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.2864, allocations: 2.905 MB / 442.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.2866, allocations: 165.1 kB / 442.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.2867, allocations: 30.22 kB / 442.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.2868, allocations: 99.41 kB / 442.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2869, allocations: 4 kB / 442.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.3266, allocations: 6.656 MB / 449.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.71, allocations: 6.344 kB / 449.2 MB, free: 2.934 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] "Warning: Resultfile and Reference have different end time points! Reffile[48038]=6.000000 File[793800]=0.006252 " [Timeout remaining time 657] "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:time,inductor1.i,inductor2.i [Calling sys.exit(0), Time elapsed: 70.49854884110391]