Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.002074/0.002074, allocations: 118.4 kB / 17.78 MB, free: 5.27 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.002263/0.002263, allocations: 183.1 kB / 18.71 MB, free: 4.344 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.608/1.608, allocations: 207.6 MB / 227.1 MB, free: 11.53 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.001898/0.001898, allocations: 55.91 kB / 335.6 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3486, allocations: 49.1 MB / 384.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00423/0.3528, allocations: 2.84 MB / 387.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.3542, allocations: 0.7812 MB / 388.3 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.3544, allocations: 5.594 kB / 388.3 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.3546, allocations: 48.42 kB / 388.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001995/0.3548, allocations: 99 kB / 388.5 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003674/0.3552, allocations: 94.02 kB / 388.6 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.3556, allocations: 376.6 kB / 388.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.3558, allocations: 91.36 kB / 389 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.3559, allocations: 137.9 kB / 389.1 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.3561, allocations: 162 kB / 389.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.602e-05/0.3562, allocations: 30.25 kB / 389.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.113e-05/0.3563, allocations: 30.16 kB / 389.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.667e-05/0.3563, allocations: 75.42 kB / 389.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002034/0.3565, allocations: 158.1 kB / 389.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005682/0.3571, allocations: 366 kB / 390 MB, free: 4.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3571, allocations: 0 / 390 MB, free: 4.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.3571, allocations: 2.016 kB / 390 MB, free: 4.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.3571, allocations: 0 / 390 MB, free: 4.379 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001148/0.3583, allocations: 0.6146 MB / 390.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.3583, allocations: 9 kB / 390.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.19e-05/0.3584, allocations: 67.28 kB / 390.6 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.726e-05/0.3585, allocations: 35.94 kB / 390.7 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004947/0.359, allocations: 269.3 kB / 390.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.942e-05/0.3591, allocations: 78.28 kB / 391 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.171e-05/0.3592, allocations: 28.11 kB / 391 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005772/0.3597, allocations: 304.5 kB / 391.3 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.3597, allocations: 3.984 kB / 391.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.3598, allocations: 12.5 kB / 391.4 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3598, allocations: 6.688 kB / 391.4 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004281/0.3602, allocations: 185.8 kB / 391.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.3621, allocations: 1.134 MB / 392.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003457/0.3625, allocations: 145.4 kB / 392.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.3626, allocations: 71.66 kB / 392.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.3626, allocations: 5.156 kB / 392.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002407/0.3629, allocations: 159 kB / 393.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.014e-06/0.3629, allocations: 1.125 kB / 393.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001006/0.3639, allocations: 381.1 kB / 393.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.3639, allocations: 111.5 kB / 393.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002298/0.3641, allocations: 224.7 kB / 393.8 MB, free: 1.703 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.3642, allocations: 33.11 kB / 393.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.3643, allocations: 184.3 kB / 394 MB, free: 1.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.264e-05/0.3644, allocations: 73.89 kB / 394 MB, free: 1.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.223e-05/0.3644, allocations: 64.88 kB / 394.1 MB, free: 1.406 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.246e-05/0.3645, allocations: 343.4 kB / 394.4 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.3647, allocations: 65.39 kB / 394.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.3648, allocations: 138.9 kB / 394.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.365, allocations: 197.8 kB / 394.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.365, allocations: 0 / 394.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004498/0.3655, allocations: 273.9 kB / 395.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3655, allocations: 6.516 kB / 395.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3655, allocations: 2.125 kB / 395.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002941/0.3658, allocations: 58 kB / 395.2 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002255/0.366, allocations: 52.12 kB / 395.2 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.3676, allocations: 1.565 MB / 396.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/0.3679, allocations: 34.95 kB / 396.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.3679, allocations: 17.36 kB / 396.8 MB, free: 15.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0002264/0.3682, allocations: 156.5 kB / 397 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.225e-05/0.3682, allocations: 23.58 kB / 397 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.768e-05/0.3683, allocations: 29.58 kB / 397 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3683, allocations: 3.609 kB / 397 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3683, allocations: 0 / 397 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.3683, allocations: 0.6562 kB / 397 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004511/0.3688, allocations: 322.9 kB / 397.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3688, allocations: 0 / 397.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.369, allocations: 42.73 kB / 397.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000186/0.3691, allocations: 52.47 kB / 397.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.3692, allocations: 7.328 kB / 397.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.3705, allocations: 1.419 MB / 398.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3705, allocations: 160 / 398.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007081/0.3712, allocations: 333 kB / 399.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.3714, allocations: 116.4 kB / 399.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.958e-05/0.3714, allocations: 5.953 kB / 399.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.3716, allocations: 22.02 kB / 399.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.3717, allocations: 28.12 kB / 399.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.3717, allocations: 9.828 kB / 399.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002184/0.3719, allocations: 166.1 kB / 399.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3719, allocations: 0 / 399.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004279/0.3724, allocations: 78.88 kB / 399.6 MB, free: 12.7 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001162/0.3735, allocations: 0.8694 MB / 400.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006949/0.3742, allocations: 279.5 kB / 400.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3742, allocations: 0 / 400.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002997/0.3745, allocations: 188.8 kB / 400.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.3749, allocations: 41.64 kB / 401 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.3791, allocations: 2.589 MB / 403.6 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004755/0.3795, allocations: 0.7614 MB / 404.3 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.3797, allocations: 20.12 kB / 404.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.3798, allocations: 87.95 kB / 404.4 MB, free: 9.07 MB / 334.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3798, allocations: 0 / 404.4 MB, free: 9.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04055/0.4203, allocations: 5.686 MB / 410.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.49, allocations: 17.84 kB / 410.1 MB, free: 6.883 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches