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.001607/0.001607, allocations: 110.5 kB / 17.73 MB, free: 5.363 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.002002/0.002003, allocations: 191 kB / 18.66 MB, free: 4.438 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.776/1.776, 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.001385/0.001385, allocations: 47.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1102, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.007527/0.1177, allocations: 3.096 MB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00343/0.1213, allocations: 0.7874 MB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000548/0.122, allocations: 8 kB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000354/0.1223, allocations: 63.36 kB / 378.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004557/0.1228, allocations: 99.05 kB / 378.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.1234, allocations: 115.8 kB / 378.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007754/0.1242, allocations: 418 kB / 379.2 MB, free: 492 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005227/0.1248, allocations: 139.7 kB / 379.4 MB, free: 348 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005515/0.1253, allocations: 155.5 kB / 379.5 MB, free: 192 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005905/0.126, allocations: 179.2 kB / 379.7 MB, free: 12 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2355/0.3614, allocations: 32.14 kB / 379.7 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.3617, allocations: 34.91 kB / 379.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.3618, allocations: 79.8 kB / 379.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002992/0.3621, allocations: 188.1 kB / 380 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007044/0.3628, allocations: 428.6 kB / 380.4 MB, free: 9.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3628, allocations: 0 / 380.4 MB, free: 9.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3628, allocations: 0 / 380.4 MB, free: 9.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.125e-05/0.3629, allocations: 0 / 380.4 MB, free: 9.52 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.001309/0.3642, allocations: 0.6485 MB / 381.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.3642, allocations: 12.75 kB / 381.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.859e-05/0.3644, allocations: 71.17 kB / 381.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.3645, allocations: 39.72 kB / 381.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.365, allocations: 275.9 kB / 381.5 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.751e-05/0.365, allocations: 83.36 kB / 381.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.429e-05/0.3651, allocations: 31.47 kB / 381.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006306/0.3657, allocations: 342.4 kB / 381.9 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.3658, allocations: 0 / 381.9 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.3658, allocations: 13.88 kB / 381.9 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.3658, allocations: 8.25 kB / 381.9 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004793/0.3663, allocations: 221.3 kB / 382.2 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.3685, allocations: 1.357 MB / 383.5 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003726/0.3689, allocations: 169.6 kB / 383.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.3691, allocations: 93.67 kB / 383.8 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.3691, allocations: 2.344 kB / 383.8 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000304/0.3694, allocations: 151.6 kB / 383.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.863e-06/0.3694, allocations: 0 / 383.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001117/0.3706, allocations: 402.5 kB / 384.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.3706, allocations: 111.3 kB / 384.4 MB, free: 7.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002947/0.3709, allocations: 266.6 kB / 384.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.371, allocations: 31.58 kB / 384.7 MB, free: 7.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.3711, allocations: 206.9 kB / 384.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.028e-05/0.3712, allocations: 69.33 kB / 385 MB, free: 7.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.3713, allocations: 65.61 kB / 385 MB, free: 7.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.573e-05/0.3714, allocations: 336.2 kB / 385.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.3715, allocations: 82.06 kB / 385.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.3717, allocations: 181.5 kB / 385.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003147/0.3721, allocations: 233.7 kB / 385.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3721, allocations: 4 kB / 385.9 MB, free: 6.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007281/0.3728, allocations: 340.8 kB / 386.2 MB, free: 6.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.3728, allocations: 10.62 kB / 386.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3729, allocations: 3.094 kB / 386.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002831/0.3731, allocations: 51.42 kB / 386.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.3734, allocations: 66.47 kB / 386.3 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.3745, allocations: 1.58 MB / 387.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.3749, allocations: 42.16 kB / 387.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.3749, allocations: 14.95 kB / 388 MB, free: 4.875 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.0001572/0.3751, allocations: 150.6 kB / 388.1 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.3751, allocations: 29.98 kB / 388.1 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.3752, allocations: 35.91 kB / 388.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3752, allocations: 3.656 kB / 388.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3752, allocations: 0 / 388.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3752, allocations: 2.547 kB / 388.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003846/0.3756, allocations: 337.5 kB / 388.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3756, allocations: 0 / 388.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.3758, allocations: 42.72 kB / 388.5 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.376, allocations: 55.56 kB / 388.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.376, allocations: 6.234 kB / 388.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009105/0.377, allocations: 1.42 MB / 390 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.377, allocations: 0 / 390 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006896/0.3777, allocations: 350.5 kB / 390.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.3778, allocations: 113.3 kB / 390.5 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.282e-05/0.3778, allocations: 7.031 kB / 390.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.378, allocations: 19.48 kB / 390.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.3781, allocations: 31.19 kB / 390.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.3782, allocations: 5.312 kB / 390.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000176/0.3783, allocations: 193.5 kB / 390.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3783, allocations: 0 / 390.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004394/0.3788, allocations: 92.91 kB / 390.8 MB, free: 2.555 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.0009202/0.3797, allocations: 0.89 MB / 391.7 MB, free: 1.844 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006572/0.3804, allocations: 316.1 kB / 392 MB, free: 1.676 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3804, allocations: 0.875 kB / 392 MB, free: 1.676 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000332/0.3807, allocations: 197.2 kB / 392.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.3812, allocations: 43.89 kB / 392.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004752/0.3859, allocations: 2.899 MB / 395.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.3864, allocations: 0.7708 MB / 395.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001512/0.3866, allocations: 25.36 kB / 396 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.3867, allocations: 97.67 kB / 396 MB, free: 14.79 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3868, allocations: 0 / 396 MB, free: 14.79 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03769/0.4245, allocations: 6.144 MB / 402.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.38, allocations: 9.266 kB / 402.2 MB, free: 13.38 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 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.mat","/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