Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00177/0.00177, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002236/0.002236, allocations: 203.8 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 230.5 MB / 257.4 MB, free: 7.73 MB / 206.1 MB " [Timeout remaining time 178] 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.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002149/0.002149, allocations: 55.91 kB / 377.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2516, allocations: 53.4 MB / 431.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004742/0.2563, allocations: 2.703 MB / 433.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.258, allocations: 0.7416 MB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002521/0.2583, allocations: 4 kB / 434.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.2585, allocations: 55.5 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.2587, allocations: 87.14 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003934/0.2591, allocations: 103.8 kB / 434.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.2596, allocations: 370.4 kB / 435.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.2599, allocations: 79.69 kB / 435.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.2601, allocations: 151.5 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.2603, allocations: 135.3 kB / 435.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.457e-05/0.2604, allocations: 28 kB / 435.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.286e-05/0.2605, allocations: 32 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.386e-05/0.2605, allocations: 67.77 kB / 435.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.2607, allocations: 143.4 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004531/0.2612, allocations: 366.5 kB / 436.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2612, allocations: 0 / 436.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2612, allocations: 0 / 436.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.2612, allocations: 0 / 436.2 MB, free: 1.523 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.001057/0.2623, allocations: 0.5417 MB / 436.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.2623, allocations: 11.98 kB / 436.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.748e-05/0.2624, allocations: 66.72 kB / 436.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.894e-05/0.2625, allocations: 40.7 kB / 436.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.2629, allocations: 206.7 kB / 437 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.263, allocations: 128 kB / 437.2 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.263, allocations: 28.38 kB / 437.2 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005173/0.2635, allocations: 361.2 kB / 437.5 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.2636, allocations: 0 / 437.5 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.2636, allocations: 12 kB / 437.6 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.2636, allocations: 4 kB / 437.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003596/0.264, allocations: 186.6 kB / 437.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.2657, allocations: 1.019 MB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.266, allocations: 150.6 kB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.2661, allocations: 68.83 kB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.2661, allocations: 8 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002983/0.2664, allocations: 216.6 kB / 439.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.2664, allocations: 0 / 439.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009749/0.2674, allocations: 302.5 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.749e-05/0.2675, allocations: 114.8 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/0.2677, allocations: 232.8 kB / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.2677, allocations: 33.7 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.2679, allocations: 176.5 kB / 440 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.675e-05/0.2679, allocations: 79.41 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.179e-05/0.268, allocations: 53.66 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2682, allocations: 338.8 kB / 440.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.2683, allocations: 67.97 kB / 440.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.2685, allocations: 192.9 kB / 440.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.2688, allocations: 196.2 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2688, allocations: 0 / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004509/0.2693, allocations: 272.4 kB / 441.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.2693, allocations: 8.219 kB / 441.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2693, allocations: 4 kB / 441.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002663/0.2696, allocations: 60.8 kB / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.2698, allocations: 51.91 kB / 441.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.2712, allocations: 1.464 MB / 442.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.2715, allocations: 35.83 kB / 442.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.2715, allocations: 12 kB / 442.8 MB, free: 10.36 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.0001646/0.2717, allocations: 153.4 kB / 443 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.2717, allocations: 19.86 kB / 443 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.159e-05/0.2717, allocations: 38.36 kB / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2717, allocations: 0 / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.2717, allocations: 0 / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2718, allocations: 4 kB / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.2721, allocations: 264.5 kB / 443.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2721, allocations: 0 / 443.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.2722, allocations: 35.92 kB / 443.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.2724, allocations: 52.81 kB / 443.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.2725, allocations: 8 kB / 443.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.2737, allocations: 1.318 MB / 444.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2737, allocations: 0 / 444.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00066/0.2744, allocations: 325.2 kB / 445 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.197e-05/0.2745, allocations: 43.73 kB / 445.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.2745, allocations: 4 kB / 445.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.2747, allocations: 15.98 kB / 445.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.151e-05/0.2748, allocations: 31.94 kB / 445.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.2748, allocations: 8 kB / 445.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001518/0.2749, allocations: 160.5 kB / 445.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2749, allocations: 64 / 445.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003537/0.2753, allocations: 99.7 kB / 445.4 MB, free: 7.629 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.0009775/0.2763, allocations: 0.8551 MB / 446.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000539/0.2768, allocations: 278.4 kB / 446.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2768, allocations: 0.5 kB / 446.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003184/0.2771, allocations: 201.5 kB / 446.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.2774, allocations: 40.36 kB / 446.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.2812, allocations: 2.597 MB / 449.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.2814, allocations: 150.9 kB / 449.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.674e-05/0.2815, allocations: 26.28 kB / 449.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.2816, allocations: 83.41 kB / 449.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2816, allocations: 0 / 449.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04005/0.3216, allocations: 6.302 MB / 455.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.67, allocations: 7.938 kB / 455.9 MB, free: 13.05 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.418902835808694]