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.001388/0.001388, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001582/0.001582, allocations: 214.9 kB / 23.75 MB, free: 4.672 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.387/1.387, allocations: 230.5 MB / 257.4 MB, free: 8 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.001821/0.001821, allocations: 59.91 kB / 377.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2457, allocations: 53.41 MB / 431.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004223/0.2499, allocations: 2.917 MB / 434.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.2513, allocations: 0.7712 MB / 434.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.2514, allocations: 4 kB / 434.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.2515, allocations: 55.44 kB / 434.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.2517, allocations: 87.19 kB / 435 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.2521, allocations: 107.8 kB / 435.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.2525, allocations: 370.4 kB / 435.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.2526, allocations: 95.61 kB / 435.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.2528, allocations: 143.5 kB / 435.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.253, allocations: 151.3 kB / 435.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.414e-05/0.2531, allocations: 32 kB / 435.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.031e-05/0.2531, allocations: 32 kB / 435.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.145e-05/0.2532, allocations: 75.73 kB / 436 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.2534, allocations: 155.3 kB / 436.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004089/0.2538, allocations: 366.9 kB / 436.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2538, allocations: 0 / 436.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2538, allocations: 0 / 436.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.2538, allocations: 0 / 436.5 MB, free: 1.305 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.0009801/0.2548, allocations: 0.5417 MB / 437.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2548, allocations: 8.031 kB / 437.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/0.2549, allocations: 62.73 kB / 437.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.198e-05/0.2549, allocations: 40.7 kB / 437.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.2553, allocations: 214.6 kB / 437.4 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.2554, allocations: 136 kB / 437.5 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.2555, allocations: 24.38 kB / 437.5 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004989/0.256, allocations: 305.8 kB / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.256, allocations: 0 / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.256, allocations: 8 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.256, allocations: 12 kB / 437.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.2564, allocations: 190.5 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.258, allocations: 1.085 MB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.2583, allocations: 146.1 kB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.2584, allocations: 79.58 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.2585, allocations: 3.938 kB / 439.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.2587, allocations: 165.4 kB / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.283e-06/0.2587, allocations: 0 / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001036/0.2598, allocations: 306.5 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.855e-05/0.2598, allocations: 106.8 kB / 439.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.2601, allocations: 228.9 kB / 440.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.2601, allocations: 29.7 kB / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.2603, allocations: 184.5 kB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.591e-05/0.2603, allocations: 75.41 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.436e-05/0.2604, allocations: 57.7 kB / 440.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.2606, allocations: 338.8 kB / 440.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.2607, allocations: 63.97 kB / 440.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.2609, allocations: 141.5 kB / 441 MB, free: 12.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.2612, allocations: 196.1 kB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.2612, allocations: 7.938 kB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004444/0.2616, allocations: 272.5 kB / 441.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.2616, allocations: 4 kB / 441.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.2616, allocations: 4 kB / 441.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002674/0.2619, allocations: 53.03 kB / 441.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.2621, allocations: 51.92 kB / 441.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.2636, allocations: 1.468 MB / 443.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.2638, allocations: 39.92 kB / 443.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.2638, allocations: 15.98 kB / 443.1 MB, free: 10.26 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.000155/0.264, allocations: 145.4 kB / 443.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.912e-05/0.264, allocations: 23.86 kB / 443.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.01e-05/0.2641, allocations: 30.27 kB / 443.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2641, allocations: 0 / 443.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.2641, allocations: 0 / 443.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2641, allocations: 0 / 443.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/0.2644, allocations: 300.4 kB / 443.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2644, allocations: 7.938 kB / 443.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.2646, allocations: 31.92 kB / 443.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001889/0.2648, allocations: 52.81 kB / 443.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.2648, allocations: 3.984 kB / 443.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.2661, allocations: 1.326 MB / 445 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2661, allocations: 0 / 445 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006173/0.2667, allocations: 324.7 kB / 445.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.637e-05/0.2668, allocations: 39.73 kB / 445.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.2668, allocations: 8 kB / 445.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.267, allocations: 20.11 kB / 445.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.451e-05/0.267, allocations: 35.88 kB / 445.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.2671, allocations: 8 kB / 445.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001553/0.2672, allocations: 164.5 kB / 445.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2672, allocations: 0 / 445.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003542/0.2676, allocations: 71.89 kB / 445.7 MB, free: 7.516 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.0009658/0.2685, allocations: 0.8707 MB / 446.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005399/0.2691, allocations: 278.8 kB / 446.8 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2691, allocations: 8.188 kB / 446.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.2694, allocations: 194 kB / 447 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.2696, allocations: 38.8 kB / 447.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003604/0.2732, allocations: 2.592 MB / 449.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.2736, allocations: 0.7558 MB / 450.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.408e-05/0.2737, allocations: 26.28 kB / 450.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.2738, allocations: 83.41 kB / 450.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of SimCode: time 5.82e-07/0.2738, allocations: 0 / 450.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03607/0.3099, allocations: 5.873 MB / 456.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.55, allocations: 3.656 kB / 456.4 MB, free: 12.73 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] Reference file matches [Calling sys.exit(0), Time elapsed: 15.106734434000828]