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.001141/0.001141, allocations: 110.3 kB / 17.73 MB, free: 5.34 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.001083/0.001083, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.597/1.597, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001766/0.001766, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1189, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005317/0.1243, allocations: 3.092 MB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.1264, allocations: 0.7952 MB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006345/0.1272, allocations: 4 kB / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004144/0.1277, allocations: 63.36 kB / 378.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006393/0.1283, allocations: 107 kB / 378.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007408/0.1291, allocations: 107.8 kB / 378.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009341/0.13, allocations: 422 kB / 379.2 MB, free: 484 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.1305, allocations: 143.7 kB / 379.4 MB, free: 336 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000528/0.131, allocations: 155.5 kB / 379.5 MB, free: 180 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000487/0.1315, allocations: 179.2 kB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.3051/0.4366, allocations: 34.67 kB / 379.7 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.4369, allocations: 35.66 kB / 379.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.4371, allocations: 75.48 kB / 379.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003514/0.4374, allocations: 186.2 kB / 380 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.4384, allocations: 428.7 kB / 380.4 MB, free: 9.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.4384, allocations: 0 / 380.4 MB, free: 9.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4384, allocations: 0 / 380.4 MB, free: 9.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.4385, allocations: 2.156 kB / 380.4 MB, free: 9.496 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.001572/0.44, allocations: 0.6532 MB / 381.1 MB, free: 9.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.497e-05/0.4401, allocations: 12.84 kB / 381.1 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001164/0.4403, allocations: 71.12 kB / 381.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.4404, allocations: 39.95 kB / 381.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.4409, allocations: 284.5 kB / 381.5 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.441, allocations: 81.69 kB / 381.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.371e-05/0.4411, allocations: 31.53 kB / 381.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000751/0.4419, allocations: 339.7 kB / 381.9 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.4419, allocations: 1.375 kB / 381.9 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.442, allocations: 13.45 kB / 382 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.442, allocations: 8.25 kB / 382 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005682/0.4426, allocations: 221.2 kB / 382.2 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.4449, allocations: 1.358 MB / 383.5 MB, free: 7.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.4454, allocations: 163.5 kB / 383.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.4456, allocations: 95.14 kB / 383.8 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.4457, allocations: 2.938 kB / 383.8 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004359/0.4461, allocations: 158.7 kB / 383.9 MB, free: 7.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.783e-06/0.4461, allocations: 2.188 kB / 383.9 MB, free: 7.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00148/0.4476, allocations: 402 kB / 384.3 MB, free: 7.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.563e-05/0.4477, allocations: 110.8 kB / 384.4 MB, free: 7.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.4481, allocations: 263.7 kB / 384.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.4482, allocations: 36.17 kB / 384.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.4484, allocations: 210.7 kB / 384.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.55e-05/0.4485, allocations: 66.77 kB / 385 MB, free: 7.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.4486, allocations: 65.69 kB / 385.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.4488, allocations: 336.5 kB / 385.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.449, allocations: 81.12 kB / 385.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.4494, allocations: 184.4 kB / 385.7 MB, free: 6.648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/0.4498, allocations: 237.7 kB / 385.9 MB, free: 6.543 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.4498, allocations: 0 / 385.9 MB, free: 6.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008062/0.4506, allocations: 341.1 kB / 386.2 MB, free: 6.453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.4506, allocations: 11.62 kB / 386.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.4507, allocations: 2.625 kB / 386.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003559/0.451, allocations: 54.48 kB / 386.3 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.4513, allocations: 63.7 kB / 386.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.4527, allocations: 1.577 MB / 387.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/0.453, allocations: 41.42 kB / 388 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.984e-05/0.453, allocations: 17.86 kB / 388 MB, free: 4.832 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.0001597/0.4532, allocations: 157.8 kB / 388.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.768e-05/0.4533, allocations: 29.56 kB / 388.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.279e-05/0.4533, allocations: 34.73 kB / 388.2 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.4533, allocations: 3.531 kB / 388.2 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.4533, allocations: 0.7031 kB / 388.2 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.944e-06/0.4534, allocations: 1.453 kB / 388.2 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000426/0.4538, allocations: 340.6 kB / 388.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4538, allocations: 1.375 kB / 388.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002237/0.454, allocations: 34.22 kB / 388.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002146/0.4543, allocations: 58.69 kB / 388.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.4543, allocations: 6.625 kB / 388.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.4554, allocations: 1.418 MB / 390.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4555, allocations: 0 / 390.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008357/0.4563, allocations: 352.8 kB / 390.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.4564, allocations: 120.8 kB / 390.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.4565, allocations: 4.016 kB / 390.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.4567, allocations: 22.69 kB / 390.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.4568, allocations: 31.67 kB / 390.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.4568, allocations: 12.83 kB / 390.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002745/0.4571, allocations: 182.4 kB / 390.8 MB, free: 2.523 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4571, allocations: 0 / 390.8 MB, free: 2.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005164/0.4577, allocations: 88.56 kB / 390.9 MB, free: 2.504 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.001274/0.4589, allocations: 0.892 MB / 391.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008495/0.4598, allocations: 312.8 kB / 392.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.4598, allocations: 1.906 kB / 392.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004137/0.4602, allocations: 206.4 kB / 392.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.4606, allocations: 38.28 kB / 392.3 MB, free: 1.469 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005191/0.4658, allocations: 2.908 MB / 395.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005023/0.4663, allocations: 0.7695 MB / 396 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.4665, allocations: 28.22 kB / 396 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.4667, allocations: 93.23 kB / 396.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4667, allocations: 2.625 kB / 396.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04298/0.5097, allocations: 6.048 MB / 402.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.39, allocations: 11.98 kB / 402.2 MB, free: 13.36 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