Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",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.001363/0.001363, allocations: 94.39 kB / 16.95 MB, free: 6.383 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.0018/0.0018, allocations: 182.4 kB / 17.84 MB, free: 5.98 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.883/1.883, allocations: 205.4 MB / 224 MB, free: 13.15 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.000734/0.0007342, allocations: 12 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1521, allocations: 47.58 MB / 328.4 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003685/0.1559, allocations: 2.454 MB / 330.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.1576, allocations: 0.7258 MB / 331.6 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003516/0.158, allocations: 8 kB / 331.6 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002665/0.1583, allocations: 35.69 kB / 331.7 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003474/0.1586, allocations: 83.31 kB / 331.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.159, allocations: 75.84 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005726/0.1596, allocations: 366.3 kB / 332.2 MB, free: 212 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003068/0.1599, allocations: 101.8 kB / 332.3 MB, free: 112 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003773/0.1603, allocations: 115.6 kB / 332.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003516/0.1607, allocations: 135.3 kB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.817e-05/0.1608, allocations: 16 kB / 332.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.53e-05/0.1609, allocations: 16 kB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.03e-05/0.161, allocations: 51.77 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.1611, allocations: 85.52 kB / 332.7 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000371/0.1615, allocations: 319.3 kB / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1615, allocations: 0 / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1615, allocations: 4 kB / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.1616, allocations: 0 / 333 MB, free: 15.38 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001177/0.1627, allocations: 0.5699 MB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.1628, allocations: 15.97 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001159/0.1629, allocations: 62.53 kB / 333.7 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.163, allocations: 31.62 kB / 333.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004935/0.1635, allocations: 282.4 kB / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.1636, allocations: 20.52 kB / 334 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.77e-05/0.1636, allocations: 24 kB / 334 MB, free: 14.28 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006113/0.1642, allocations: 288.5 kB / 334.3 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1643, allocations: 0 / 334.3 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.1643, allocations: 15.98 kB / 334.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.1643, allocations: 11.94 kB / 334.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004982/0.1648, allocations: 202.1 kB / 334.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.1668, allocations: 1.168 MB / 335.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005552/0.1674, allocations: 219.1 kB / 335.9 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.1677, allocations: 149.2 kB / 336 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.1677, allocations: 4.188 kB / 336 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003935/0.1681, allocations: 164.6 kB / 336.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 2.956e-06/0.1682, allocations: 0 / 336.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001602/0.1698, allocations: 0.515 MB / 336.7 MB, free: 11.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.1699, allocations: 132.5 kB / 336.9 MB, free: 11.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003584/0.1703, allocations: 245 kB / 337.1 MB, free: 11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.1703, allocations: 29.7 kB / 337.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.1705, allocations: 180.3 kB / 337.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.772e-05/0.1706, allocations: 63.09 kB / 337.4 MB, free: 10.72 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/0.1706, allocations: 4 kB / 337.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.1708, allocations: 342.8 kB / 337.7 MB, free: 10.37 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.1709, allocations: 71.91 kB / 337.8 MB, free: 10.3 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.1712, allocations: 125.1 kB / 337.9 MB, free: 10.16 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.1714, allocations: 71.98 kB / 338 MB, free: 10.09 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.1714, allocations: 4 kB / 338 MB, free: 10.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005673/0.172, allocations: 302 kB / 338.3 MB, free: 9.781 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.172, allocations: 6.188 kB / 338.3 MB, free: 9.777 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.172, allocations: 0 / 338.3 MB, free: 9.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004334/0.1724, allocations: 88.8 kB / 338.3 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.1726, allocations: 35.98 kB / 338.4 MB, free: 9.652 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002697/0.1753, allocations: 1.94 MB / 340.3 MB, free: 7.578 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.1756, allocations: 35.8 kB / 340.4 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.1756, allocations: 12 kB / 340.4 MB, free: 7.531 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002614/0.1759, allocations: 153.8 kB / 340.5 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.511e-05/0.176, allocations: 27.7 kB / 340.5 MB, free: 7.344 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.38e-05/0.176, allocations: 26.19 kB / 340.6 MB, free: 7.316 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.1761, allocations: 4 kB / 340.6 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1761, allocations: 0 / 340.6 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.1761, allocations: 3.984 kB / 340.6 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.1773, allocations: 0.7809 MB / 341.4 MB, free: 6.465 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1773, allocations: 0 / 341.4 MB, free: 6.465 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.1774, allocations: 23.92 kB / 341.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002857/0.1777, allocations: 92.8 kB / 341.5 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.1778, allocations: 0 / 341.5 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003008/0.1808, allocations: 1.948 MB / 343.4 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.1808, allocations: 3.969 kB / 343.4 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009101/0.1817, allocations: 456.8 kB / 343.9 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002585/0.182, allocations: 121 kB / 344 MB, free: 3.66 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.1821, allocations: 11.95 kB / 344 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002916/0.1824, allocations: 15.98 kB / 344 MB, free: 3.633 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.1826, allocations: 39.94 kB / 344.1 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1826, allocations: 4 kB / 344.1 MB, free: 3.59 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002245/0.1829, allocations: 176.5 kB / 344.2 MB, free: 3.418 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1829, allocations: 4 kB / 344.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006257/0.1835, allocations: 95.69 kB / 344.3 MB, free: 3.32 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0013/0.1848, allocations: 0.9911 MB / 345.3 MB, free: 2.293 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009102/0.1857, allocations: 338.5 kB / 345.7 MB, free: 1.949 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.1858, allocations: 7.938 kB / 345.7 MB, free: 1.941 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004772/0.1862, allocations: 271.3 kB / 345.9 MB, free: 1.664 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005668/0.1868, allocations: 60.61 kB / 346 MB, free: 1.605 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.1899, allocations: 1.635 MB / 347.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.1904, allocations: 0.7635 MB / 348.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.1906, allocations: 18.3 kB / 348.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.1908, allocations: 83.41 kB / 348.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.033e-06/0.1908, allocations: 8.031 kB / 348.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02953/0.2204, allocations: 6.658 MB / 355.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000301/0.2208, allocations: 216.9 kB / 355.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/2.449, allocations: 0 / 355.4 MB, free: 8.117 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat