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.001329/0.001328, allocations: 114.6 kB / 17.73 MB, free: 5.203 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.001397/0.001398, allocations: 188.2 kB / 18.67 MB, free: 4.273 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.74/1.74, 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.00151/0.00151, allocations: 59.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1127, allocations: 46.61 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005236/0.1179, allocations: 3.088 MB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002134/0.1201, allocations: 0.7912 MB / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004818/0.1207, allocations: 11.94 kB / 378.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.1211, allocations: 59.42 kB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004906/0.1216, allocations: 99.06 kB / 378.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.1222, allocations: 119.7 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007962/0.123, allocations: 422 kB / 379.2 MB, free: 472 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003426/0.1233, allocations: 139.7 kB / 379.4 MB, free: 328 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004219/0.1238, allocations: 159.5 kB / 379.5 MB, free: 168 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2623/0.386, allocations: 169.9 kB / 379.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.3863, allocations: 32.94 kB / 379.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.3865, allocations: 35.22 kB / 379.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.3866, allocations: 84.89 kB / 379.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004137/0.387, allocations: 184.5 kB / 380 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.3881, allocations: 422.7 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.3881, allocations: 1.375 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.469e-06/0.3881, allocations: 0 / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.336e-05/0.3882, allocations: 2.812 kB / 380.4 MB, free: 10.02 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.001813/0.39, allocations: 0.6574 MB / 381.1 MB, free: 9.547 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.3901, allocations: 13.84 kB / 381.1 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001282/0.3902, allocations: 69.17 kB / 381.2 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.3904, allocations: 41.33 kB / 381.2 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005723/0.3909, allocations: 281.6 kB / 381.5 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.3911, allocations: 77.31 kB / 381.6 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.3911, allocations: 33.27 kB / 381.6 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00068/0.3918, allocations: 343 kB / 381.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.3918, allocations: 2.359 kB / 381.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.121e-05/0.3919, allocations: 10.62 kB / 381.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.3919, allocations: 9.328 kB / 382 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004783/0.3924, allocations: 226.8 kB / 382.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.3945, allocations: 1.355 MB / 383.5 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.3949, allocations: 169.2 kB / 383.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.3951, allocations: 90.56 kB / 383.8 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.3951, allocations: 5.656 kB / 383.8 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003271/0.3954, allocations: 160.4 kB / 383.9 MB, free: 8.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.3954, allocations: 0.6875 kB / 384 MB, free: 8.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001162/0.3966, allocations: 398.6 kB / 384.3 MB, free: 8.016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.3967, allocations: 113.4 kB / 384.5 MB, free: 7.887 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.397, allocations: 270.4 kB / 384.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.397, allocations: 31.92 kB / 384.7 MB, free: 7.691 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3972, allocations: 208.6 kB / 384.9 MB, free: 7.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.363e-05/0.3972, allocations: 74.36 kB / 385 MB, free: 7.465 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.3973, allocations: 62.55 kB / 385.1 MB, free: 7.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.001e-05/0.3974, allocations: 338.2 kB / 385.4 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.3976, allocations: 78.55 kB / 385.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.3978, allocations: 177.6 kB / 385.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.3981, allocations: 242.1 kB / 385.9 MB, free: 6.758 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3981, allocations: 0 / 385.9 MB, free: 6.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006495/0.3988, allocations: 341.6 kB / 386.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.3988, allocations: 6.812 kB / 386.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3988, allocations: 3.078 kB / 386.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002714/0.3991, allocations: 55.17 kB / 386.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.3994, allocations: 71.98 kB / 386.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.4005, allocations: 1.567 MB / 387.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.4008, allocations: 46.92 kB / 388 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.4009, allocations: 10.56 kB / 388 MB, free: 5.004 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.0001587/0.401, allocations: 151.1 kB / 388.1 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.4011, allocations: 33.38 kB / 388.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.156e-05/0.4011, allocations: 35.03 kB / 388.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.4011, allocations: 3.75 kB / 388.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4011, allocations: 6.75 kB / 388.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4012, allocations: 1.5 kB / 388.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003677/0.4015, allocations: 340 kB / 388.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4015, allocations: 0 / 388.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.4017, allocations: 38.2 kB / 388.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/0.4019, allocations: 62.92 kB / 388.6 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.402, allocations: 7.531 kB / 388.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009047/0.4029, allocations: 1.42 MB / 390.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4029, allocations: 0.75 kB / 390.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007038/0.4036, allocations: 352.1 kB / 390.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.742e-05/0.4037, allocations: 120.8 kB / 390.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/0.4038, allocations: 6.922 kB / 390.5 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.4039, allocations: 16.23 kB / 390.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.849e-05/0.404, allocations: 38.55 kB / 390.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.4041, allocations: 6.672 kB / 390.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001779/0.4043, allocations: 186.3 kB / 390.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4043, allocations: 0 / 390.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004108/0.4047, allocations: 88.69 kB / 390.9 MB, free: 2.668 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.0009585/0.4056, allocations: 0.8795 MB / 391.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006306/0.4063, allocations: 317 kB / 392.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4063, allocations: 0 / 392.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000292/0.4066, allocations: 203.8 kB / 392.3 MB, free: 1.656 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.4069, allocations: 37.8 kB / 392.3 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004404/0.4113, allocations: 2.913 MB / 395.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.4117, allocations: 0.769 MB / 396 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.4119, allocations: 29.42 kB / 396 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.412, allocations: 97.47 kB / 396.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of SimCode: time 8.72e-07/0.412, allocations: 0 / 396.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03372/0.4458, allocations: 6.046 MB / 402.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.27, allocations: 9.266 kB / 402.2 MB, free: 13.5 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