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.001304/0.001304, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001379/0.001379, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.451/1.451, allocations: 207.6 MB / 235.3 MB, free: 10 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.001714/0.001714, allocations: 60.34 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2636, allocations: 49.15 MB / 396.4 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003779/0.2674, allocations: 3.117 MB / 399.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.2687, allocations: 0.7938 MB / 400.3 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001795/0.2689, allocations: 10.12 kB / 400.3 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.269, allocations: 60.97 kB / 400.3 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.2692, allocations: 101.9 kB / 400.4 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.2696, allocations: 109.8 kB / 400.5 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003927/0.27, allocations: 428.4 kB / 401 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.2701, allocations: 104 kB / 401.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.2703, allocations: 166.3 kB / 401.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.2706, allocations: 174.2 kB / 401.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.166e-05/0.2706, allocations: 35.94 kB / 401.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.2707, allocations: 34.69 kB / 401.5 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.652e-05/0.2707, allocations: 79.94 kB / 401.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.2709, allocations: 190.8 kB / 401.7 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.2714, allocations: 430 kB / 402.2 MB, free: 5.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2714, allocations: 0 / 402.2 MB, free: 5.449 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2714, allocations: 0 / 402.2 MB, free: 5.449 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.2714, allocations: 1.312 kB / 402.2 MB, free: 5.449 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.0009435/0.2723, allocations: 0.5813 MB / 402.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.2724, allocations: 13.33 kB / 402.7 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.749e-05/0.2725, allocations: 69.3 kB / 402.8 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.422e-05/0.2725, allocations: 49.59 kB / 402.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.2728, allocations: 218.4 kB / 403.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.63e-05/0.2729, allocations: 132.2 kB / 403.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.273, allocations: 34.17 kB / 403.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005026/0.2735, allocations: 349.4 kB / 403.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.2735, allocations: 5.203 kB / 403.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.2735, allocations: 10.5 kB / 403.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.2735, allocations: 8.344 kB / 403.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.2739, allocations: 221.2 kB / 403.8 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.2757, allocations: 1.314 MB / 405.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003253/0.276, allocations: 164 kB / 405.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.2762, allocations: 80.94 kB / 405.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.2762, allocations: 7.203 kB / 405.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.2765, allocations: 154.9 kB / 405.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.2765, allocations: 0 / 405.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001098/0.2776, allocations: 327.4 kB / 405.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.2776, allocations: 106.9 kB / 406 MB, free: 2.852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/0.2779, allocations: 257.4 kB / 406.2 MB, free: 2.699 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.2779, allocations: 30.86 kB / 406.2 MB, free: 2.664 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.278, allocations: 214.9 kB / 406.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.056e-05/0.2781, allocations: 71.64 kB / 406.5 MB, free: 2.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.158e-05/0.2782, allocations: 65.83 kB / 406.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.361e-05/0.2782, allocations: 337.2 kB / 406.9 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.2784, allocations: 79.03 kB / 407 MB, free: 2.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.2786, allocations: 181.5 kB / 407.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/0.2789, allocations: 232.4 kB / 407.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2789, allocations: 1.156 kB / 407.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006427/0.2796, allocations: 346.2 kB / 407.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.2796, allocations: 6.875 kB / 407.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2796, allocations: 3.094 kB / 407.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002567/0.2799, allocations: 55.03 kB / 407.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/0.2801, allocations: 65.64 kB / 407.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009707/0.2811, allocations: 1.46 MB / 409.3 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.2814, allocations: 49.92 kB / 409.4 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.2814, allocations: 15.06 kB / 409.4 MB, free: 64 kB / 318.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.0001827/0.2816, allocations: 155.4 kB / 409.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.2816, allocations: 32.88 kB / 409.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.576e-05/0.2817, allocations: 31.84 kB / 409.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2817, allocations: 7.703 kB / 409.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2817, allocations: 0 / 409.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2817, allocations: 5.156 kB / 409.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004056/0.2821, allocations: 310 kB / 409.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2821, allocations: 4.594 kB / 409.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.2823, allocations: 34.77 kB / 410 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002137/0.2825, allocations: 59.25 kB / 410 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.2826, allocations: 2.781 kB / 410 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.2839, allocations: 1.316 MB / 411.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2839, allocations: 0 / 411.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007566/0.2846, allocations: 356.4 kB / 411.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.2847, allocations: 47.67 kB / 411.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.146e-05/0.2848, allocations: 5.969 kB / 411.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.2849, allocations: 15.16 kB / 411.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.285, allocations: 36.16 kB / 411.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.2851, allocations: 6 kB / 411.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002094/0.2853, allocations: 180.9 kB / 412 MB, free: 13.97 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2853, allocations: 5.438 kB / 412 MB, free: 13.97 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004216/0.2857, allocations: 88.81 kB / 412.1 MB, free: 13.95 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.001135/0.2868, allocations: 0.8851 MB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006713/0.2875, allocations: 304.9 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2875, allocations: 1.25 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003396/0.2878, allocations: 193.3 kB / 413.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.2881, allocations: 48.11 kB / 413.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004635/0.2928, allocations: 2.895 MB / 416.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.2932, allocations: 0.777 MB / 417.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.2933, allocations: 31.23 kB / 417.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.2935, allocations: 96.88 kB / 417.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2935, allocations: 0.9062 kB / 417.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03999/0.3335, allocations: 6.281 MB / 423.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.17, allocations: 5.172 kB / 423.6 MB, free: 6.754 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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.357935241998348]