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.00105/0.00105, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 192.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003919/0.000392, allocations: 11.98 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1642, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004976/0.1693, allocations: 2.7 MB / 361 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.1714, allocations: 0.7521 MB / 361.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002731/0.1718, allocations: 15.94 kB / 361.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.172, allocations: 39.67 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.1723, allocations: 91.23 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000545/0.1728, allocations: 75.92 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005561/0.1734, allocations: 390 kB / 362.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002852/0.1737, allocations: 107 kB / 362.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003572/0.174, allocations: 135.5 kB / 362.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.1743, allocations: 151.3 kB / 362.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.406e-05/0.1744, allocations: 23.94 kB / 362.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.1745, allocations: 20 kB / 362.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.179e-05/0.1746, allocations: 63.75 kB / 362.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.1748, allocations: 89.52 kB / 362.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004687/0.1752, allocations: 307.4 kB / 363.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1752, allocations: 4 kB / 363.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1753, allocations: 0 / 363.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.1753, allocations: 0 / 363.2 MB, free: 8.805 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.001344/0.1766, allocations: 0.604 MB / 363.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/0.1767, allocations: 8.031 kB / 363.8 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.1768, allocations: 74.53 kB / 363.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000266/0.1771, allocations: 51.52 kB / 364 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000505/0.1776, allocations: 268 kB / 364.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.1777, allocations: 92 kB / 364.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.289e-05/0.1778, allocations: 32 kB / 364.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000873/0.1787, allocations: 334.7 kB / 364.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.1787, allocations: 3.984 kB / 364.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.1788, allocations: 12 kB / 364.7 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.1788, allocations: 8 kB / 364.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006342/0.1795, allocations: 226.5 kB / 364.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.1822, allocations: 1.38 MB / 366.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.1827, allocations: 169.6 kB / 366.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.1829, allocations: 100.7 kB / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.183, allocations: 0 / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004452/0.1834, allocations: 162.5 kB / 366.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.783e-06/0.1834, allocations: 0 / 366.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001588/0.185, allocations: 424.8 kB / 367.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.1852, allocations: 102.8 kB / 367.2 MB, free: 4.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004952/0.1857, allocations: 266.6 kB / 367.5 MB, free: 4.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.1857, allocations: 25.7 kB / 367.5 MB, free: 4.191 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003257/0.1861, allocations: 207.9 kB / 367.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.1862, allocations: 74.98 kB / 367.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.111e-05/0.1862, allocations: 4 kB / 367.8 MB, free: 3.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.1864, allocations: 354.7 kB / 368.2 MB, free: 3.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002321/0.1867, allocations: 72.62 kB / 368.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003489/0.187, allocations: 181.5 kB / 368.4 MB, free: 3.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/0.1873, allocations: 89.14 kB / 368.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/0.1873, allocations: 0 / 368.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001042/0.1884, allocations: 346.5 kB / 368.8 MB, free: 2.828 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.951e-05/0.1884, allocations: 4 kB / 368.8 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/0.1885, allocations: 7.984 kB / 368.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004171/0.1889, allocations: 56.97 kB / 368.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/0.1893, allocations: 71.91 kB / 369 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.1913, allocations: 1.404 MB / 370.4 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.1918, allocations: 55.58 kB / 370.4 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.1918, allocations: 16.08 kB / 370.4 MB, free: 1.078 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 ($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.0002881/0.1921, allocations: 154.8 kB / 370.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.368e-05/0.1922, allocations: 31.72 kB / 370.6 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.097e-05/0.1922, allocations: 26.17 kB / 370.6 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1923, allocations: 4 kB / 370.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1923, allocations: 3.953 kB / 370.7 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.1923, allocations: 0 / 370.7 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000523/0.1928, allocations: 337.4 kB / 371 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1928, allocations: 4 kB / 371 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.1931, allocations: 35.98 kB / 371 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002593/0.1934, allocations: 48.81 kB / 371.1 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/0.1934, allocations: 11.98 kB / 371.1 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2761/0.4696, allocations: 1.31 MB / 372.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/0.4696, allocations: 3.438 kB / 372.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.4707, allocations: 361.2 kB / 372.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.4709, allocations: 118.5 kB / 372.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.51e-05/0.471, allocations: 10.94 kB / 372.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.4712, allocations: 28.66 kB / 372.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.4713, allocations: 28.33 kB / 372.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.4713, allocations: 13.42 kB / 372.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002656/0.4716, allocations: 184.5 kB / 373.1 MB, free: 17.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4716, allocations: 0.8125 kB / 373.1 MB, free: 17.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005592/0.4722, allocations: 83.69 kB / 373.2 MB, free: 17.99 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 (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.001183/0.4734, allocations: 0.9023 MB / 374.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008488/0.4742, allocations: 311 kB / 374.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4743, allocations: 0.8125 kB / 374.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003361/0.4746, allocations: 203.1 kB / 374.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.475, allocations: 41.16 kB / 374.7 MB, free: 17.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004002/0.479, allocations: 1.833 MB / 376.5 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.4794, allocations: 0.7714 MB / 377.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000161/0.4795, allocations: 28.89 kB / 377.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.4797, allocations: 95.72 kB / 377.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4797, allocations: 1.25 kB / 377.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02859/0.5083, allocations: 5.287 MB / 382.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002912/0.5087, allocations: 237.5 kB / 382.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/2.598, allocations: 0 / 382.9 MB, free: 15.01 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat