Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009468/0.0009468, allocations: 195.8 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007668/0.0007667, allocations: 99.89 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003074, allocations: 11.98 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1864, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002124/0.1886, allocations: 2.688 MB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008741/0.1895, allocations: 0.7546 MB / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.1896, allocations: 11.94 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001085/0.1897, allocations: 35.69 kB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.1899, allocations: 92.27 kB / 411.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.1902, allocations: 80.94 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.1904, allocations: 387.2 kB / 412.2 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.1906, allocations: 115.8 kB / 412.3 MB, free: 23.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.1908, allocations: 139.5 kB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1909, allocations: 147.3 kB / 412.6 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.1909, allocations: 20 kB / 412.6 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.556e-05/0.191, allocations: 27.92 kB / 412.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.174e-05/0.1911, allocations: 63.75 kB / 412.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1912, allocations: 188.9 kB / 412.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.1914, allocations: 308.3 kB / 413.2 MB, free: 22.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1914, allocations: 4 kB / 413.2 MB, free: 22.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1914, allocations: 0 / 413.2 MB, free: 22.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1914, allocations: 0 / 413.2 MB, free: 22.62 MB / 298.7 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.0007354/0.1921, allocations: 0.5964 MB / 413.8 MB, free: 21.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1922, allocations: 12.03 kB / 413.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.854e-05/0.1923, allocations: 66.72 kB / 413.8 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.1924, allocations: 52.45 kB / 413.9 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.1926, allocations: 285.3 kB / 414.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.054e-05/0.1927, allocations: 76.62 kB / 414.2 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.1927, allocations: 28.38 kB / 414.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004423/0.1932, allocations: 342.6 kB / 414.6 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.1932, allocations: 4 kB / 414.6 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.1932, allocations: 12 kB / 414.6 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1933, allocations: 12 kB / 414.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000366/0.1936, allocations: 222.5 kB / 414.8 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.195, allocations: 1.379 MB / 416.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.1953, allocations: 178.5 kB / 416.4 MB, free: 19.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1954, allocations: 91.23 kB / 416.5 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.1954, allocations: 4 kB / 416.5 MB, free: 19.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/0.1957, allocations: 161.2 kB / 416.7 MB, free: 18.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.1957, allocations: 4 kB / 416.7 MB, free: 18.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009306/0.1966, allocations: 415.1 kB / 417.1 MB, free: 18.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.1967, allocations: 110.8 kB / 417.2 MB, free: 18.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001782/0.1969, allocations: 254.7 kB / 417.4 MB, free: 18.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1969, allocations: 33.7 kB / 417.5 MB, free: 18.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.371e-05/0.197, allocations: 207.8 kB / 417.7 MB, free: 17.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.661e-05/0.197, allocations: 71.09 kB / 417.7 MB, free: 17.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.197, allocations: 4 kB / 417.7 MB, free: 17.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.563e-05/0.1971, allocations: 338.8 kB / 418.1 MB, free: 17.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.1972, allocations: 80.61 kB / 418.1 MB, free: 17.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.1974, allocations: 177.5 kB / 418.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.1977, allocations: 239.5 kB / 418.5 MB, free: 16.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1977, allocations: 7.938 kB / 418.6 MB, free: 16.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005532/0.1983, allocations: 353.9 kB / 418.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.1983, allocations: 4 kB / 418.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1983, allocations: 11.92 kB / 418.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002187/0.1985, allocations: 52.98 kB / 419 MB, free: 16.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002207/0.1987, allocations: 63.91 kB / 419 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008261/0.1996, allocations: 1.408 MB / 420.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002219/0.1998, allocations: 55.66 kB / 420.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.1998, allocations: 12 kB / 420.5 MB, free: 14.73 MB / 298.7 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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.2, allocations: 149.9 kB / 420.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.2, allocations: 23.72 kB / 420.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.849e-05/0.2, allocations: 34.17 kB / 420.7 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2, allocations: 7.938 kB / 420.7 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.2, allocations: 3.938 kB / 420.7 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2, allocations: 0 / 420.7 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.2003, allocations: 341.3 kB / 421.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.2003, allocations: 0 / 421.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000173/0.2005, allocations: 35.98 kB / 421.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001548/0.2006, allocations: 52.81 kB / 421.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.2006, allocations: 11.98 kB / 421.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006839/0.2013, allocations: 1.327 MB / 422.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2013, allocations: 160 / 422.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005843/0.2019, allocations: 361.3 kB / 422.8 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/0.202, allocations: 120.8 kB / 422.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/0.2021, allocations: 8 kB / 423 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.2022, allocations: 19.98 kB / 423 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.482e-05/0.2023, allocations: 31.94 kB / 423 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2023, allocations: 4 kB / 423 MB, free: 11.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001074/0.2024, allocations: 182 kB / 423.2 MB, free: 11.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2024, allocations: 4 kB / 423.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003122/0.2028, allocations: 95.73 kB / 423.3 MB, free: 11.71 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.000727/0.2035, allocations: 0.8862 MB / 424.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004569/0.204, allocations: 321.4 kB / 424.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.204, allocations: 4.062 kB / 424.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002278/0.2042, allocations: 202.6 kB / 424.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002421/0.2045, allocations: 28.5 kB / 424.7 MB, free: 10.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.2068, allocations: 1.869 MB / 426.6 MB, free: 8.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001328/0.2069, allocations: 0.7791 MB / 427.4 MB, free: 7.465 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.2071, allocations: 91.41 kB / 427.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2071, allocations: 0 / 427.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.856/3.063, allocations: 5.497 MB / 432.9 MB, free: 1.871 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches