Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001883/0.001883, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002362/0.002362, allocations: 210.9 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.341/1.341, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00296/0.00296, allocations: 54.58 kB / 347.2 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2605, allocations: 49.15 MB / 396.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003458/0.264, allocations: 2.625 MB / 399 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2652, allocations: 0.7539 MB / 399.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.2654, allocations: 5.156 kB / 399.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.2655, allocations: 48.73 kB / 399.8 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001689/0.2657, allocations: 93.72 kB / 399.9 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.266, allocations: 104 kB / 400 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003519/0.2664, allocations: 375.8 kB / 400.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.2666, allocations: 84 kB / 400.4 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.2667, allocations: 144.8 kB / 400.6 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.2669, allocations: 138.2 kB / 400.7 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.932e-05/0.2669, allocations: 29.75 kB / 400.7 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.945e-05/0.267, allocations: 30.56 kB / 400.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.822e-05/0.2671, allocations: 70.7 kB / 400.8 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2672, allocations: 134.6 kB / 401 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003631/0.2676, allocations: 368 kB / 401.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2676, allocations: 0 / 401.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2676, allocations: 4 kB / 401.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.2676, allocations: 0 / 401.3 MB, free: 5.816 MB / 318.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.0008473/0.2684, allocations: 0.5364 MB / 401.9 MB, free: 5.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2684, allocations: 14.12 kB / 401.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.667e-05/0.2685, allocations: 67.42 kB / 401.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.507e-05/0.2686, allocations: 38.97 kB / 402 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.2689, allocations: 205.4 kB / 402.2 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.32e-05/0.269, allocations: 127 kB / 402.3 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.269, allocations: 26.91 kB / 402.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.2695, allocations: 358.4 kB / 402.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.2695, allocations: 0 / 402.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.2695, allocations: 11.16 kB / 402.7 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.2695, allocations: 7.719 kB / 402.7 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003264/0.2698, allocations: 187.6 kB / 402.9 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.2712, allocations: 1.024 MB / 403.9 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.2715, allocations: 147.8 kB / 404.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.2716, allocations: 73.44 kB / 404.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.2716, allocations: 2.094 kB / 404.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.2718, allocations: 217 kB / 404.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.432e-06/0.2718, allocations: 0 / 404.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009134/0.2728, allocations: 303.6 kB / 404.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.2728, allocations: 114.8 kB / 404.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.273, allocations: 230.8 kB / 405 MB, free: 3.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.273, allocations: 31.69 kB / 405 MB, free: 3.227 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.094e-05/0.2731, allocations: 187.9 kB / 405.2 MB, free: 3.066 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.2731, allocations: 72.3 kB / 405.3 MB, free: 3.012 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.893e-05/0.2732, allocations: 59.55 kB / 405.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.107e-05/0.2733, allocations: 335.2 kB / 405.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.2734, allocations: 71.03 kB / 405.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.2735, allocations: 190.8 kB / 405.9 MB, free: 2.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.2737, allocations: 192.1 kB / 406.1 MB, free: 2.316 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2737, allocations: 1.531 kB / 406.1 MB, free: 2.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003809/0.2741, allocations: 273.6 kB / 406.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.2741, allocations: 5.922 kB / 406.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2741, allocations: 2 kB / 406.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002544/0.2744, allocations: 54.53 kB / 406.4 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.2746, allocations: 54.78 kB / 406.5 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000946/0.2756, allocations: 1.471 MB / 407.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002214/0.2758, allocations: 39.33 kB / 408 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.2758, allocations: 17.2 kB / 408 MB, free: 0.6797 MB / 318.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.000111/0.2759, allocations: 145.1 kB / 408.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.2759, allocations: 23.7 kB / 408.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.564e-05/0.276, allocations: 29.69 kB / 408.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.276, allocations: 2.312 kB / 408.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.276, allocations: 1.953 kB / 408.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.276, allocations: 0.6562 kB / 408.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.2762, allocations: 263.5 kB / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2762, allocations: 0 / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.2764, allocations: 42.25 kB / 408.5 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001688/0.2766, allocations: 51.81 kB / 408.5 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.2766, allocations: 6.609 kB / 408.5 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/0.2778, allocations: 1.323 MB / 409.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2778, allocations: 0 / 409.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/0.2784, allocations: 332 kB / 410.2 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.36e-05/0.2785, allocations: 42.59 kB / 410.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/0.2785, allocations: 3.453 kB / 410.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.2787, allocations: 21.81 kB / 410.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.821e-05/0.2788, allocations: 28.62 kB / 410.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.2788, allocations: 10.91 kB / 410.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.279, allocations: 165.3 kB / 410.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.279, allocations: 0 / 410.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000361/0.2793, allocations: 79.14 kB / 410.5 MB, free: 14.61 MB / 334.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.000985/0.2803, allocations: 0.8651 MB / 411.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000558/0.2809, allocations: 282.8 kB / 411.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2809, allocations: 1.219 kB / 411.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002876/0.2811, allocations: 192.5 kB / 411.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.2815, allocations: 38.34 kB / 411.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003758/0.2852, allocations: 2.6 MB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.2854, allocations: 149.4 kB / 414.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.866e-05/0.2855, allocations: 20.31 kB / 414.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.2856, allocations: 83.81 kB / 414.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2856, allocations: 4 kB / 414.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03735/0.3229, allocations: 6.309 MB / 421.1 MB, free: 8.223 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.02, allocations: 6.812 kB / 421.1 MB, free: 8.219 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.574802726041526]