Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001872/0.001872, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.002128/0.002128, allocations: 186 kB / 23.7 MB, free: 4.191 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.388/1.388, allocations: 225.7 MB / 252.5 MB, free: 12.84 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.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 51.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2639, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004156/0.2681, allocations: 2.663 MB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.2695, allocations: 0.6988 MB / 425.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2696, allocations: 4 kB / 426 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.2698, allocations: 59.44 kB / 426 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001871/0.27, allocations: 91.12 kB / 426.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.2704, allocations: 103.8 kB / 426.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004415/0.2708, allocations: 366.4 kB / 426.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.271, allocations: 83.67 kB / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.2712, allocations: 135.6 kB / 426.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.2714, allocations: 143.2 kB / 426.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.782e-05/0.2715, allocations: 32 kB / 426.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.2716, allocations: 32 kB / 427 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.954e-05/0.2716, allocations: 71.75 kB / 427 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.2718, allocations: 135.4 kB / 427.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004418/0.2722, allocations: 370.5 kB / 427.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2722, allocations: 0 / 427.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2722, allocations: 0 / 427.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.2722, allocations: 0 / 427.5 MB, free: 9.43 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.001052/0.2733, allocations: 0.5486 MB / 428.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.2733, allocations: 12.03 kB / 428.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.71e-05/0.2734, allocations: 58.73 kB / 428.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.393e-05/0.2735, allocations: 40.73 kB / 428.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004421/0.2739, allocations: 202.7 kB / 428.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.2741, allocations: 128 kB / 428.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.108e-05/0.2741, allocations: 32.38 kB / 428.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005225/0.2746, allocations: 357.2 kB / 428.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2747, allocations: 0 / 428.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.2747, allocations: 12 kB / 428.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.2747, allocations: 11.94 kB / 428.9 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003377/0.275, allocations: 186.5 kB / 429.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.2767, allocations: 1.027 MB / 430.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.277, allocations: 142.6 kB / 430.3 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.2771, allocations: 72.88 kB / 430.3 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.2772, allocations: 8 kB / 430.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.2775, allocations: 217.5 kB / 430.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.2775, allocations: 0 / 430.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001013/0.2785, allocations: 311.8 kB / 430.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.929e-05/0.2786, allocations: 106.8 kB / 431 MB, free: 5.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002321/0.2788, allocations: 228.9 kB / 431.2 MB, free: 5.496 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.2788, allocations: 33.69 kB / 431.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.279, allocations: 184.5 kB / 431.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.391e-05/0.279, allocations: 67.42 kB / 431.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.109e-05/0.2791, allocations: 61.69 kB / 431.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.2793, allocations: 334.8 kB / 431.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.2794, allocations: 71.97 kB / 431.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.2796, allocations: 196.8 kB / 432.1 MB, free: 4.492 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.2799, allocations: 193.3 kB / 432.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2799, allocations: 4 kB / 432.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004536/0.2804, allocations: 276.5 kB / 432.6 MB, free: 4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.2804, allocations: 4 kB / 432.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2804, allocations: 8.219 kB / 432.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/0.2806, allocations: 52.81 kB / 432.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.2808, allocations: 47.92 kB / 432.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.2823, allocations: 1.464 MB / 434.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/0.2825, allocations: 35.78 kB / 434.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.2825, allocations: 19.97 kB / 434.2 MB, free: 2.254 MB / 334.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.0001547/0.2827, allocations: 145.7 kB / 434.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.2827, allocations: 23.86 kB / 434.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.893e-05/0.2828, allocations: 34.3 kB / 434.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.2828, allocations: 7.984 kB / 434.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2828, allocations: 0 / 434.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2828, allocations: 0 / 434.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003052/0.2831, allocations: 264.5 kB / 434.7 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2831, allocations: 0 / 434.7 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.2832, allocations: 35.92 kB / 434.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000177/0.2834, allocations: 56.81 kB / 434.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.2834, allocations: 7.984 kB / 434.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.2846, allocations: 1.311 MB / 436.1 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2846, allocations: 4.031 kB / 436.1 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006157/0.2852, allocations: 332.7 kB / 436.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.687e-05/0.2853, allocations: 35.75 kB / 436.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.816e-05/0.2854, allocations: 8 kB / 436.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.2855, allocations: 15.98 kB / 436.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.287e-05/0.2856, allocations: 31.94 kB / 436.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.2856, allocations: 15.92 kB / 436.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.2858, allocations: 160.5 kB / 436.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2858, allocations: 64 / 436.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.2861, allocations: 75.89 kB / 436.8 MB, free: 15.53 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.0009375/0.287, allocations: 0.8707 MB / 437.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005024/0.2876, allocations: 274.5 kB / 437.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2876, allocations: 0.5 kB / 437.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000286/0.2878, allocations: 197.8 kB / 438.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.2881, allocations: 43.53 kB / 438.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003633/0.2917, allocations: 2.602 MB / 440.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.2919, allocations: 150.9 kB / 440.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.375e-05/0.292, allocations: 26.28 kB / 440.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.2921, allocations: 79.42 kB / 441 MB, free: 11.11 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.2921, allocations: 0 / 441 MB, free: 11.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/0.3299, allocations: 6.298 MB / 447.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/12.77, allocations: 7.75 kB / 447.3 MB, free: 4.977 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.394137618131936]