Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001986/0.001986, 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.002393/0.002393, allocations: 212 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.422/1.422, allocations: 207.7 MB / 235.3 MB, free: 9.793 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.002008/0.002008, allocations: 54.58 kB / 347.2 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2534, allocations: 49.15 MB / 396.4 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003888/0.2573, allocations: 2.853 MB / 399.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.2585, allocations: 0.7582 MB / 400 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.2587, allocations: 6.75 kB / 400 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.2589, allocations: 60.48 kB / 400 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001818/0.2591, allocations: 100.2 kB / 400.1 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000356/0.2594, allocations: 119.8 kB / 400.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004158/0.2599, allocations: 419.7 kB / 400.7 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.2601, allocations: 96.27 kB / 400.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.2603, allocations: 170.6 kB / 400.9 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.2605, allocations: 150.4 kB / 401.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.396e-05/0.2606, allocations: 35.22 kB / 401.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.743e-05/0.2606, allocations: 34.81 kB / 401.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.036e-05/0.2607, allocations: 92.88 kB / 401.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.2609, allocations: 154.2 kB / 401.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000456/0.2613, allocations: 425.6 kB / 401.8 MB, free: 5.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2613, allocations: 5.188 kB / 401.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2613, allocations: 0 / 401.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.2613, allocations: 0 / 401.8 MB, free: 5.527 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.000918/0.2623, allocations: 0.5784 MB / 402.4 MB, free: 5.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.2623, allocations: 14.14 kB / 402.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.894e-05/0.2624, allocations: 69.28 kB / 402.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.227e-05/0.2624, allocations: 46.16 kB / 402.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.2628, allocations: 222.4 kB / 402.7 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.124e-05/0.2628, allocations: 132.1 kB / 402.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-05/0.2629, allocations: 33.62 kB / 402.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00053/0.2634, allocations: 395 kB / 403.3 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2634, allocations: 1 kB / 403.3 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.966e-05/0.2635, allocations: 15.59 kB / 403.3 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.2635, allocations: 11.56 kB / 403.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.2638, allocations: 216.4 kB / 403.5 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.2654, allocations: 1.238 MB / 404.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.2657, allocations: 170.9 kB / 404.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.2658, allocations: 81.59 kB / 405 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.2658, allocations: 2.594 kB / 405 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002725/0.2661, allocations: 208.2 kB / 405.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.2661, allocations: 1.594 kB / 405.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001032/0.2672, allocations: 322.7 kB / 405.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.2672, allocations: 110.7 kB / 405.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002591/0.2675, allocations: 266.7 kB / 405.9 MB, free: 2.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.2675, allocations: 35.98 kB / 405.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.2676, allocations: 210.5 kB / 406.1 MB, free: 2.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.856e-05/0.2676, allocations: 70.25 kB / 406.2 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.185e-05/0.2677, allocations: 63.09 kB / 406.2 MB, free: 2.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.258e-05/0.2678, allocations: 337.3 kB / 406.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.2679, allocations: 82.3 kB / 406.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.2682, allocations: 229.1 kB / 406.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.2684, allocations: 239.9 kB / 407.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.2684, allocations: 1.406 kB / 407.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006276/0.2691, allocations: 342 kB / 407.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2691, allocations: 5.5 kB / 407.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2691, allocations: 4.125 kB / 407.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.2694, allocations: 50.98 kB / 407.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.2696, allocations: 64.52 kB / 407.6 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.2706, allocations: 1.469 MB / 409 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003046/0.2709, allocations: 49.58 kB / 409.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.2709, allocations: 15.78 kB / 409.1 MB, free: 15.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001789/0.2711, allocations: 151.2 kB / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.451e-05/0.2712, allocations: 30.16 kB / 409.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.456e-05/0.2712, allocations: 30.83 kB / 409.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2712, allocations: 2.75 kB / 409.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.2712, allocations: 0.7031 kB / 409.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2712, allocations: 2.125 kB / 409.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/0.2716, allocations: 280.6 kB / 409.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2716, allocations: 0.5156 kB / 409.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.2718, allocations: 42.17 kB / 409.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001884/0.272, allocations: 59.67 kB / 409.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.272, allocations: 7.266 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.2732, allocations: 1.308 MB / 411 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.2732, allocations: 3.984 kB / 411 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007316/0.274, allocations: 357.3 kB / 411.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.2741, allocations: 44.19 kB / 411.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.2741, allocations: 6.156 kB / 411.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.2743, allocations: 23.67 kB / 411.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.2744, allocations: 40.95 kB / 411.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.2744, allocations: 4.156 kB / 411.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.2746, allocations: 186.2 kB / 411.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2746, allocations: 0 / 411.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004014/0.275, allocations: 85.77 kB / 411.7 MB, free: 13.89 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001102/0.2761, allocations: 0.8823 MB / 412.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006276/0.2767, allocations: 300.9 kB / 412.9 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2767, allocations: 1.188 kB / 412.9 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000312/0.277, allocations: 196.6 kB / 413.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.2773, allocations: 47.19 kB / 413.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/0.2818, allocations: 2.897 MB / 416.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002039/0.282, allocations: 168.5 kB / 416.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.2821, allocations: 30.14 kB / 416.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.2823, allocations: 98.2 kB / 416.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.2823, allocations: 0 / 416.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05037/0.3326, allocations: 6.658 MB / 423 MB, free: 6.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.05, allocations: 1.281 kB / 423 MB, free: 6.953 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[48038]=6.000000 File[809248]=0.006252 " [Timeout remaining time 657] "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:time,inductor1.i,inductor2.i [Calling sys.exit(0), Time elapsed: 70.93305307487026]