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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 113.2 kB / 17.73 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 188.2 kB / 18.67 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.13, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00621/0.1363, allocations: 3.096 MB / 377.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.1385, allocations: 0.7952 MB / 378.5 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000381/0.1389, allocations: 4 kB / 378.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.1392, allocations: 67.36 kB / 378.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.1395, allocations: 99.05 kB / 378.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005294/0.1401, allocations: 115.8 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006199/0.1407, allocations: 414 kB / 379.2 MB, free: 468 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003579/0.1411, allocations: 139.7 kB / 379.4 MB, free: 324 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.1414, allocations: 163.4 kB / 379.5 MB, free: 160 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3293/0.4707, allocations: 168 kB / 379.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002681/0.471, allocations: 34.66 kB / 379.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.4712, allocations: 35.38 kB / 379.8 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.4713, allocations: 81.02 kB / 379.8 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000335/0.4717, allocations: 188.8 kB / 380 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009322/0.4726, allocations: 425.9 kB / 380.4 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.4727, allocations: 0 / 380.4 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.077e-06/0.4727, allocations: 0 / 380.4 MB, free: 9.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.4727, allocations: 0 / 380.4 MB, free: 9.445 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.001452/0.4742, allocations: 0.6535 MB / 381.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.466e-05/0.4742, allocations: 12.56 kB / 381.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.999e-05/0.4743, allocations: 72.56 kB / 381.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.4745, allocations: 41.95 kB / 381.2 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006048/0.4751, allocations: 283.6 kB / 381.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.4752, allocations: 81.06 kB / 381.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.291e-05/0.4753, allocations: 29.61 kB / 381.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008091/0.4761, allocations: 341.6 kB / 381.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.4762, allocations: 0 / 381.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.402e-05/0.4762, allocations: 13.94 kB / 381.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.4762, allocations: 7.438 kB / 382 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006336/0.4769, allocations: 225.8 kB / 382.2 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002519/0.4794, allocations: 1.351 MB / 383.5 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004636/0.4799, allocations: 175.3 kB / 383.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.4801, allocations: 92.81 kB / 383.8 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.345e-05/0.4802, allocations: 2.531 kB / 383.8 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003792/0.4806, allocations: 155.5 kB / 383.9 MB, free: 7.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.4806, allocations: 0.6562 kB / 383.9 MB, free: 7.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001425/0.482, allocations: 403 kB / 384.3 MB, free: 7.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.207e-05/0.4821, allocations: 110.6 kB / 384.4 MB, free: 7.375 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.4825, allocations: 266.5 kB / 384.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.4825, allocations: 35.23 kB / 384.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.4827, allocations: 208.2 kB / 384.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.235e-05/0.4828, allocations: 71.17 kB / 385 MB, free: 7.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.4829, allocations: 64.69 kB / 385.1 MB, free: 7.027 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.483, allocations: 338.1 kB / 385.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.4832, allocations: 75.56 kB / 385.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002663/0.4835, allocations: 184.8 kB / 385.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004258/0.4839, allocations: 235.5 kB / 385.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.484, allocations: 1.312 kB / 385.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008935/0.4849, allocations: 346.4 kB / 386.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.4849, allocations: 6.609 kB / 386.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.4849, allocations: 2.875 kB / 386.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003777/0.4853, allocations: 56.34 kB / 386.3 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.4856, allocations: 60.52 kB / 386.4 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.4872, allocations: 1.58 MB / 387.9 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003533/0.4876, allocations: 45.42 kB / 388 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.4876, allocations: 11.78 kB / 388 MB, free: 4.738 MB / 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.000223/0.4878, allocations: 150.6 kB / 388.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/0.4879, allocations: 33.03 kB / 388.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.278e-05/0.488, allocations: 36.02 kB / 388.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.488, allocations: 3.5 kB / 388.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.488, allocations: 0.7031 kB / 388.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.488, allocations: 5.188 kB / 388.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005435/0.4886, allocations: 339.5 kB / 388.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4886, allocations: 1.406 kB / 388.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.4888, allocations: 33.02 kB / 388.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002173/0.489, allocations: 63.8 kB / 388.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.4891, allocations: 3.469 kB / 388.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.4901, allocations: 1.416 MB / 390.1 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4902, allocations: 4.312 kB / 390.1 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008594/0.491, allocations: 351.7 kB / 390.4 MB, free: 2.672 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.4912, allocations: 121.2 kB / 390.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.4912, allocations: 10.12 kB / 390.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.4914, allocations: 15.47 kB / 390.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.4916, allocations: 40.08 kB / 390.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.4916, allocations: 8.203 kB / 390.6 MB, free: 2.527 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.4918, allocations: 190.6 kB / 390.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4919, allocations: 0 / 390.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005124/0.4924, allocations: 88.56 kB / 390.9 MB, free: 2.402 MB / 318.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.001091/0.4935, allocations: 0.8796 MB / 391.8 MB, free: 1.699 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007092/0.4942, allocations: 315.4 kB / 392.1 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4942, allocations: 1.125 kB / 392.1 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.4945, allocations: 203.7 kB / 392.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.4948, allocations: 36.91 kB / 392.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005207/0.5001, allocations: 2.914 MB / 395.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006519/0.5007, allocations: 0.7689 MB / 396 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000151/0.5009, allocations: 29.8 kB / 396 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.5011, allocations: 93.91 kB / 396.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of SimCode: time 1.423e-06/0.5011, allocations: 1.281 kB / 396.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04852/0.5496, allocations: 6.044 MB / 402.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.38, allocations: 9.891 kB / 402.2 MB, free: 13.26 MB / 334.1 MB (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) 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) Reference file matches