Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 209.5 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.416/1.416, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 47.92 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.242, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004206/0.2462, allocations: 2.704 MB / 433.8 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.2477, allocations: 0.73 MB / 434.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.2478, allocations: 4 kB / 434.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.248, allocations: 47.5 kB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.2482, allocations: 95.19 kB / 434.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.2485, allocations: 107.7 kB / 434.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.249, allocations: 374.4 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.2492, allocations: 83.69 kB / 435.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.2493, allocations: 143.5 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.2496, allocations: 151.4 kB / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.084e-05/0.2496, allocations: 32 kB / 435.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.932e-05/0.2497, allocations: 35.94 kB / 435.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.077e-05/0.2498, allocations: 63.83 kB / 435.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.2499, allocations: 139.4 kB / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004284/0.2503, allocations: 378.4 kB / 436.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2503, allocations: 0 / 436.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2503, allocations: 0 / 436.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.2504, allocations: 0 / 436.1 MB, free: 1.562 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.00104/0.2514, allocations: 0.5378 MB / 436.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.2514, allocations: 12.03 kB / 436.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.361e-05/0.2515, allocations: 66.72 kB / 436.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.62e-05/0.2516, allocations: 48.64 kB / 436.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.252, allocations: 206.7 kB / 437 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.2521, allocations: 124 kB / 437.1 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-05/0.2522, allocations: 28.38 kB / 437.2 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.2527, allocations: 357.3 kB / 437.5 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.2527, allocations: 0 / 437.5 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.2527, allocations: 8 kB / 437.5 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.2527, allocations: 12 kB / 437.5 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003525/0.2531, allocations: 190.5 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.2547, allocations: 1.015 MB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.255, allocations: 149.2 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.2551, allocations: 72.83 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.2552, allocations: 4 kB / 438.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003014/0.2555, allocations: 216 kB / 439.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.2555, allocations: 0 / 439.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009589/0.2564, allocations: 310.5 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.074e-05/0.2565, allocations: 106.8 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002328/0.2567, allocations: 232.8 kB / 439.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.2568, allocations: 29.7 kB / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.2569, allocations: 180.5 kB / 440 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.464e-05/0.257, allocations: 79.41 kB / 440.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.65e-05/0.2571, allocations: 61.66 kB / 440.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2572, allocations: 334.8 kB / 440.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.2573, allocations: 67.97 kB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.2575, allocations: 196 kB / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.2578, allocations: 192.2 kB / 440.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.2578, allocations: 4 kB / 440.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004183/0.2582, allocations: 264.6 kB / 441.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2583, allocations: 4 kB / 441.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.2583, allocations: 4 kB / 441.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.2585, allocations: 64.95 kB / 441.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.2587, allocations: 51.91 kB / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.2601, allocations: 1.461 MB / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.2603, allocations: 35.98 kB / 442.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.2604, allocations: 16 kB / 442.8 MB, free: 10.41 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.0001522/0.2605, allocations: 149.9 kB / 442.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.429e-05/0.2605, allocations: 23.86 kB / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.758e-05/0.2606, allocations: 30.27 kB / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2606, allocations: 4 kB / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.2606, allocations: 0 / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2606, allocations: 0 / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003018/0.2609, allocations: 276.5 kB / 443.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2609, allocations: 0 / 443.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.2611, allocations: 35.98 kB / 443.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.2612, allocations: 48.81 kB / 443.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.2613, allocations: 4 kB / 443.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.2624, allocations: 1.326 MB / 444.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2624, allocations: 32 / 444.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.2631, allocations: 325.6 kB / 445 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.689e-05/0.2631, allocations: 47.67 kB / 445 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.2632, allocations: 4.219 kB / 445.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.2633, allocations: 19.98 kB / 445.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.747e-05/0.2634, allocations: 31.94 kB / 445.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.2634, allocations: 8 kB / 445.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001466/0.2636, allocations: 164.5 kB / 445.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2636, allocations: 0 / 445.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003568/0.2639, allocations: 79.84 kB / 445.3 MB, free: 7.672 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.0009234/0.2649, allocations: 0.8646 MB / 446.2 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000537/0.2654, allocations: 278.4 kB / 446.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2654, allocations: 0 / 446.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002708/0.2657, allocations: 192.7 kB / 446.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.266, allocations: 40.92 kB / 446.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.2695, allocations: 2.592 MB / 449.3 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.2697, allocations: 150.9 kB / 449.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.779e-05/0.2698, allocations: 22.28 kB / 449.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.2699, allocations: 91.34 kB / 449.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2699, allocations: 0 / 449.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03724/0.3071, allocations: 6.375 MB / 455.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.5, allocations: 2.969 kB / 455.9 MB, free: 13.06 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.116013010003371]