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.001438/0.001438, allocations: 104 kB / 17.58 MB, free: 5.418 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.001654/0.001654, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.305/1.305, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.00122/0.00122, allocations: 56.52 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07632/0.07755, allocations: 46.64 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004097/0.08168, allocations: 3.1 MB / 330.5 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.08303, allocations: 0.7759 MB / 331.3 MB, free: 488 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.08327, allocations: 4 kB / 331.3 MB, free: 484 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.08347, allocations: 67.36 kB / 331.3 MB, free: 416 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.08369, allocations: 107 kB / 331.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.08404, allocations: 103.8 kB / 331.5 MB, free: 204 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004077/0.08446, allocations: 426.2 kB / 332 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002343/0.0847, allocations: 131.7 kB / 332.1 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.08493, allocations: 159.4 kB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.08516, allocations: 179.2 kB / 332.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-05/0.08522, allocations: 36 kB / 332.4 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.399e-05/0.08529, allocations: 36 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.936e-05/0.08537, allocations: 71.77 kB / 332.6 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.08554, allocations: 191.1 kB / 332.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003488/0.08589, allocations: 418.8 kB / 333.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.0859, allocations: 4 kB / 333.2 MB, free: 14.58 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.08591, allocations: 0 / 333.2 MB, free: 14.58 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.08593, allocations: 0 / 333.2 MB, free: 14.58 MB / 286.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.0009988/0.08693, allocations: 0.6548 MB / 333.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.08698, allocations: 12.03 kB / 333.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.442e-05/0.08707, allocations: 70.72 kB / 333.9 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.719e-05/0.08715, allocations: 40.5 kB / 333.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.08747, allocations: 277.2 kB / 334.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.531e-05/0.08756, allocations: 80.62 kB / 334.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-05/0.08761, allocations: 32.31 kB / 334.3 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.08814, allocations: 338.7 kB / 334.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.08816, allocations: 4 kB / 334.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.0882, allocations: 16 kB / 334.7 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.08821, allocations: 8 kB / 334.7 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.08862, allocations: 218.5 kB / 334.9 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.09043, allocations: 1.368 MB / 336.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003069/0.09075, allocations: 166.5 kB / 336.4 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.09091, allocations: 92.77 kB / 336.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.09094, allocations: 3.984 kB / 336.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.09125, allocations: 157.9 kB / 336.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.09127, allocations: 0 / 336.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001062/0.09233, allocations: 403 kB / 337.1 MB, free: 10.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.09241, allocations: 110.8 kB / 337.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/0.09267, allocations: 262.6 kB / 337.4 MB, free: 9.984 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.09271, allocations: 29.7 kB / 337.4 MB, free: 9.949 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.09284, allocations: 203.8 kB / 337.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.918e-05/0.09292, allocations: 74.98 kB / 337.7 MB, free: 9.672 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.957e-05/0.09302, allocations: 65.92 kB / 337.8 MB, free: 9.602 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.09314, allocations: 338.8 kB / 338.1 MB, free: 9.262 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.0933, allocations: 76.62 kB / 338.2 MB, free: 9.188 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.09352, allocations: 181.5 kB / 338.4 MB, free: 8.969 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.09386, allocations: 235.5 kB / 338.6 MB, free: 8.703 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.09387, allocations: 0 / 338.6 MB, free: 8.703 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006567/0.09453, allocations: 343.5 kB / 338.9 MB, free: 8.359 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.09456, allocations: 4 kB / 338.9 MB, free: 8.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.09457, allocations: 4 kB / 338.9 MB, free: 8.352 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002552/0.09483, allocations: 61.09 kB / 339 MB, free: 8.289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002509/0.0951, allocations: 71.83 kB / 339.1 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.09643, allocations: 1.572 MB / 340.6 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.09669, allocations: 43.77 kB / 340.7 MB, free: 6.465 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.09673, allocations: 16 kB / 340.7 MB, free: 6.449 MB / 286.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.0001611/0.0969, allocations: 149.7 kB / 340.8 MB, free: 6.293 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.033e-05/0.09694, allocations: 31.64 kB / 340.9 MB, free: 6.262 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.559e-05/0.097, allocations: 26.19 kB / 340.9 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.097, allocations: 0 / 340.9 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-06/0.09701, allocations: 0 / 340.9 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.09702, allocations: 11.98 kB / 340.9 MB, free: 6.23 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003606/0.09739, allocations: 329.4 kB / 341.2 MB, free: 5.859 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.0974, allocations: 0 / 341.2 MB, free: 5.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.0976, allocations: 47.91 kB / 341.3 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001769/0.09778, allocations: 52.75 kB / 341.3 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.09781, allocations: 8 kB / 341.3 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.09904, allocations: 1.418 MB / 342.8 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.09905, allocations: 0 / 342.8 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006613/0.09972, allocations: 354.2 kB / 343.1 MB, free: 3.82 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.09983, allocations: 116.8 kB / 343.2 MB, free: 3.688 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.09987, allocations: 4 kB / 343.2 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.1, allocations: 23.98 kB / 343.2 MB, free: 3.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.532e-05/0.1001, allocations: 31.89 kB / 343.3 MB, free: 3.629 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.1002, allocations: 4 kB / 343.3 MB, free: 3.625 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.1003, allocations: 190 kB / 343.5 MB, free: 3.441 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1003, allocations: 7.938 kB / 343.5 MB, free: 3.434 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.1007, allocations: 83.84 kB / 343.6 MB, free: 3.352 MB / 286.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.0009538/0.1016, allocations: 0.8938 MB / 344.4 MB, free: 2.426 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005791/0.1022, allocations: 318.4 kB / 344.8 MB, free: 2.102 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1023, allocations: 0 / 344.8 MB, free: 2.102 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.1025, allocations: 195.4 kB / 345 MB, free: 1.898 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.1028, allocations: 40.48 kB / 345 MB, free: 1.859 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/0.1069, allocations: 2.908 MB / 347.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.1072, allocations: 0.7675 MB / 348.7 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.1074, allocations: 34.27 kB / 348.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.1075, allocations: 91.41 kB / 348.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1075, allocations: 0 / 348.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.133, allocations: 5.91 MB / 354.7 MB, free: 7.902 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.53, allocations: 8.453 kB / 354.7 MB, free: 7.895 MB / 302.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