Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 104 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001031, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 61.09 kB / 306.4 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08962/0.09076, allocations: 50.54 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004547/0.09534, allocations: 3.201 MB / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.09691, allocations: 0.814 MB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.0971, allocations: 8 kB / 360.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.09731, allocations: 43.67 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.09749, allocations: 83.25 kB / 361 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.09784, allocations: 107.9 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003405/0.09819, allocations: 402.1 kB / 361.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.09841, allocations: 112.3 kB / 361.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.09863, allocations: 159.4 kB / 361.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.09882, allocations: 167.2 kB / 362 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.088e-05/0.09887, allocations: 24 kB / 362 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.142e-05/0.09896, allocations: 24 kB / 362 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.075e-05/0.09903, allocations: 71.73 kB / 362.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.0992, allocations: 179.1 kB / 362.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.09956, allocations: 414.8 kB / 362.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.09958, allocations: 0 / 362.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.09958, allocations: 0 / 362.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.09959, allocations: 0 / 362.7 MB, free: 8.59 MB / 302.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.0009993/0.1006, allocations: 0.657 MB / 363.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1006, allocations: 12.03 kB / 363.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/0.1007, allocations: 70.72 kB / 363.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.1009, allocations: 52.45 kB / 363.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.1012, allocations: 281.2 kB / 363.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.456e-05/0.1013, allocations: 80.62 kB / 363.8 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.1014, allocations: 32.38 kB / 363.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005393/0.1019, allocations: 338.7 kB / 364.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1019, allocations: 0 / 364.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.102, allocations: 15.98 kB / 364.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.102, allocations: 8 kB / 364.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004096/0.1024, allocations: 226.5 kB / 364.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.1042, allocations: 1.36 MB / 365.8 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.1045, allocations: 182.4 kB / 365.9 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.1047, allocations: 84.83 kB / 366 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.1047, allocations: 8 kB / 366 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003154/0.105, allocations: 150.6 kB / 366.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.462e-06/0.105, allocations: 4 kB / 366.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001087/0.1061, allocations: 401.3 kB / 366.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.1062, allocations: 106.8 kB / 366.7 MB, free: 4.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.1064, allocations: 270.6 kB / 366.9 MB, free: 3.984 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.1065, allocations: 29.7 kB / 367 MB, free: 3.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1066, allocations: 211.8 kB / 367.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.1067, allocations: 63.08 kB / 367.2 MB, free: 3.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.08e-05/0.1068, allocations: 65.95 kB / 367.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1069, allocations: 342.8 kB / 367.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.1071, allocations: 76.62 kB / 367.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.1073, allocations: 177.5 kB / 367.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.1076, allocations: 241.4 kB / 368.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1076, allocations: 0 / 368.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006529/0.1083, allocations: 344.3 kB / 368.5 MB, free: 2.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1083, allocations: 8 kB / 368.5 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1083, allocations: 4 kB / 368.5 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002429/0.1086, allocations: 48.97 kB / 368.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.1088, allocations: 67.91 kB / 368.6 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.1101, allocations: 1.404 MB / 370 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.1103, allocations: 47.67 kB / 370 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.1103, allocations: 8 kB / 370.1 MB, free: 0.6328 MB / 302.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.0001489/0.1105, allocations: 154.8 kB / 370.2 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.1105, allocations: 31.7 kB / 370.2 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.1106, allocations: 30.28 kB / 370.3 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1106, allocations: 4 kB / 370.3 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.1106, allocations: 3.938 kB / 370.3 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1106, allocations: 3.984 kB / 370.3 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003072/0.1109, allocations: 341.3 kB / 370.6 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1109, allocations: 0 / 370.6 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1391/0.25, allocations: 36.52 kB / 370.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002675/0.2503, allocations: 52.72 kB / 370.7 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.2504, allocations: 3.109 kB / 370.7 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009511/0.2513, allocations: 1.323 MB / 372 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2513, allocations: 0.7188 kB / 372 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00074/0.2521, allocations: 348.1 kB / 372.4 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.2522, allocations: 115.1 kB / 372.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.2522, allocations: 13.84 kB / 372.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.2524, allocations: 21.77 kB / 372.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.668e-05/0.2525, allocations: 28.25 kB / 372.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.2525, allocations: 8.781 kB / 372.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001837/0.2527, allocations: 185.2 kB / 372.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2527, allocations: 1.75 kB / 372.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004221/0.2532, allocations: 87.62 kB / 372.8 MB, free: 18.77 MB / 302.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.0008908/0.2541, allocations: 0.8878 MB / 373.7 MB, free: 18.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000566/0.2546, allocations: 316.7 kB / 374 MB, free: 18.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2547, allocations: 0 / 374 MB, free: 18.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000282/0.2549, allocations: 203.8 kB / 374.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.2552, allocations: 31.53 kB / 374.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.2591, allocations: 3.034 MB / 377.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.2593, allocations: 0.7737 MB / 378 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.2594, allocations: 30.27 kB / 378.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.2596, allocations: 97.84 kB / 378.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of SimCode: time 1.683e-06/0.2596, allocations: 0 / 378.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.2777, allocations: 5.535 MB / 383.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/0.2779, allocations: 246.9 kB / 383.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.067, allocations: 6.516 kB / 384 MB, free: 14.41 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches