Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.0008775/0.0008775, allocations: 88.67 kB / 16.31 MB, free: 5.637 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.0009497/0.0009497, allocations: 177.7 kB / 17.2 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000456/0.0004564, allocations: 6.906 kB / 300.9 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1545, allocations: 50.42 MB / 351.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003917/0.1585, allocations: 2.436 MB / 353.8 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.1601, allocations: 0.6937 MB / 354.5 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.1603, allocations: 4 kB / 354.5 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.1605, allocations: 43.69 kB / 354.5 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.1607, allocations: 71.38 kB / 354.6 MB, free: 8.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003998/0.1611, allocations: 75.86 kB / 354.7 MB, free: 8.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.1616, allocations: 350.3 kB / 355 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.1619, allocations: 86.34 kB / 355.1 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.1621, allocations: 111.6 kB / 355.2 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.1623, allocations: 127.5 kB / 355.3 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.275e-05/0.1624, allocations: 16 kB / 355.3 MB, free: 7.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.814e-05/0.1625, allocations: 16 kB / 355.4 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/0.1626, allocations: 63.67 kB / 355.4 MB, free: 7.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1627, allocations: 81.58 kB / 355.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.163, allocations: 255.3 kB / 355.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1631, allocations: 0 / 355.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.219e-06/0.1631, allocations: 7.938 kB / 355.7 MB, free: 7.184 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1631, allocations: 3.938 kB / 355.8 MB, free: 7.18 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001284/0.1644, allocations: 0.5655 MB / 356.3 MB, free: 6.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.1645, allocations: 12.03 kB / 356.3 MB, free: 6.559 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/0.1646, allocations: 70.48 kB / 356.4 MB, free: 6.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.928e-05/0.1647, allocations: 35.62 kB / 356.4 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004049/0.1651, allocations: 259.2 kB / 356.7 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.946e-05/0.1652, allocations: 72.06 kB / 356.8 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.229e-05/0.1653, allocations: 31.91 kB / 356.8 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007185/0.166, allocations: 293.8 kB / 357.1 MB, free: 5.742 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1661, allocations: 0 / 357.1 MB, free: 5.742 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.578e-05/0.1661, allocations: 19.95 kB / 357.1 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.1662, allocations: 8 kB / 357.1 MB, free: 5.715 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005476/0.1667, allocations: 190.1 kB / 357.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.1692, allocations: 1.139 MB / 358.4 MB, free: 4.309 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.1696, allocations: 158.5 kB / 358.6 MB, free: 4.145 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.1698, allocations: 76.83 kB / 358.7 MB, free: 4.066 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.1699, allocations: 4 kB / 358.7 MB, free: 4.062 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004325/0.1703, allocations: 157.1 kB / 358.8 MB, free: 3.891 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.565e-06/0.1703, allocations: 0 / 358.8 MB, free: 3.891 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001528/0.1719, allocations: 395.9 kB / 359.2 MB, free: 3.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.029e-05/0.172, allocations: 107.2 kB / 359.3 MB, free: 3.352 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003392/0.1723, allocations: 228.9 kB / 359.5 MB, free: 3.117 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.1724, allocations: 29.7 kB / 359.6 MB, free: 3.082 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.1726, allocations: 184.1 kB / 359.7 MB, free: 2.898 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.1727, allocations: 71.14 kB / 359.8 MB, free: 2.828 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.997e-05/0.1728, allocations: 8 kB / 359.8 MB, free: 2.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.173, allocations: 330.8 kB / 360.1 MB, free: 2.488 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.1732, allocations: 59.98 kB / 360.2 MB, free: 2.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003221/0.1735, allocations: 152.6 kB / 360.3 MB, free: 2.246 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.1737, allocations: 73.09 kB / 360.4 MB, free: 2.176 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1738, allocations: 0 / 360.4 MB, free: 2.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007257/0.1745, allocations: 280.6 kB / 360.7 MB, free: 1.895 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.1745, allocations: 5.875 kB / 360.7 MB, free: 1.891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.1746, allocations: 4 kB / 360.7 MB, free: 1.887 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004262/0.175, allocations: 57 kB / 360.8 MB, free: 1.828 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003747/0.1754, allocations: 51.92 kB / 360.8 MB, free: 1.777 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.1778, allocations: 1.408 MB / 362.2 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.1782, allocations: 47.67 kB / 362.3 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.1783, allocations: 8 kB / 362.3 MB, free: 184 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (34): * Single equations (assignments): 33 * 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.0003823/0.1787, allocations: 154.4 kB / 362.4 MB, free: 20 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.1788, allocations: 23.89 kB / 362.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.028e-05/0.1789, allocations: 26.19 kB / 362.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1789, allocations: 3.781 kB / 362.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.1789, allocations: 3.984 kB / 362.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1789, allocations: 0 / 362.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005721/0.1795, allocations: 317.4 kB / 362.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.1795, allocations: 0 / 362.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002843/0.1798, allocations: 35.92 kB / 362.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003431/0.1802, allocations: 52.81 kB / 362.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.1802, allocations: 8 kB / 362.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/0.1819, allocations: 1.327 MB / 364.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1819, allocations: 0 / 364.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009352/0.1828, allocations: 325.7 kB / 364.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.183, allocations: 112.8 kB / 364.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.234e-05/0.1831, allocations: 15.89 kB / 364.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.1834, allocations: 24.05 kB / 364.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.1836, allocations: 31.94 kB / 364.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.867e-05/0.1836, allocations: 4 kB / 364.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002864/0.1839, allocations: 156.5 kB / 364.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.1839, allocations: 0 / 364.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000774/0.1847, allocations: 87.77 kB / 365 MB, free: 13.26 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001486/0.1862, allocations: 0.8647 MB / 365.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008132/0.1871, allocations: 286.8 kB / 366.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.1871, allocations: 4.062 kB / 366.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.1875, allocations: 195.7 kB / 366.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.188, allocations: 40.31 kB / 366.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004205/0.1923, allocations: 1.636 MB / 368 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.1928, allocations: 0.7637 MB / 368.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000181/0.193, allocations: 18.3 kB / 368.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.1932, allocations: 87.41 kB / 368.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1932, allocations: 3.938 kB / 368.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02407/0.2173, allocations: 4.951 MB / 373.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002766/0.2176, allocations: 208.9 kB / 374 MB, free: 4.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.021/2.239, allocations: 4 kB / 374 MB, free: 4.207 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat