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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001332/0.001332, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008067/0.0008067, allocations: 82.7 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.881e-05/2.884e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.08828, allocations: 47.58 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3117/0.4, allocations: 78.23 MB / 448.3 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.4003, allocations: 69.84 kB / 448.4 MB, free: 15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01271/0.413, allocations: 4.963 MB / 453.4 MB, free: 10.81 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4131, allocations: 0 / 453.4 MB, free: 10.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.952e-05/0.4131, allocations: 8 kB / 453.4 MB, free: 10.8 MB / 330.7 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.000811/0.4139, allocations: 0.5404 MB / 453.9 MB, free: 10.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.414, allocations: 8.031 kB / 453.9 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.057e-05/0.414, allocations: 64.3 kB / 454 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.067e-05/0.4141, allocations: 35.53 kB / 454 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.4145, allocations: 283.7 kB / 454.3 MB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.4145, allocations: 22.89 kB / 454.3 MB, free: 9.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.4145, allocations: 24.94 kB / 454.4 MB, free: 9.824 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004527/0.415, allocations: 274 kB / 454.6 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.415, allocations: 0 / 454.6 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.4151, allocations: 6.75 kB / 454.6 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.4151, allocations: 11.98 kB / 454.6 MB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.4154, allocations: 189.7 kB / 454.8 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.417, allocations: 1.15 MB / 456 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000439/0.4175, allocations: 207.7 kB / 456.2 MB, free: 8.355 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.4178, allocations: 145.8 kB / 456.3 MB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.4178, allocations: 192 / 456.3 MB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.418, allocations: 162.6 kB / 456.5 MB, free: 8.105 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.293e-06/0.418, allocations: 0 / 456.5 MB, free: 8.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005267/0.4186, allocations: 267.9 kB / 456.7 MB, free: 7.898 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/0.4187, allocations: 132.5 kB / 456.9 MB, free: 7.738 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.4189, allocations: 215.2 kB / 457.1 MB, free: 7.559 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.4189, allocations: 29.2 kB / 457.1 MB, free: 7.527 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.419, allocations: 172.1 kB / 457.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.978e-05/0.4191, allocations: 70.98 kB / 457.3 MB, free: 7.305 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/0.4191, allocations: 4 kB / 457.4 MB, free: 7.301 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4192, allocations: 334.8 kB / 457.7 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.4194, allocations: 68.48 kB / 457.7 MB, free: 6.898 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.4195, allocations: 113.2 kB / 457.9 MB, free: 6.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.4196, allocations: 73.22 kB / 457.9 MB, free: 6.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4197, allocations: 4.031 kB / 457.9 MB, free: 6.695 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004203/0.4201, allocations: 278.1 kB / 458.2 MB, free: 6.414 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4201, allocations: 4 kB / 458.2 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.4201, allocations: 7.953 kB / 458.2 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003269/0.4205, allocations: 92.75 kB / 458.3 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.4206, allocations: 36.02 kB / 458.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/0.4227, allocations: 1.969 MB / 460.3 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.423, allocations: 39.83 kB / 460.3 MB, free: 4.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.423, allocations: 11.94 kB / 460.4 MB, free: 4.117 MB / 330.7 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,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 9.669e-05/0.4231, allocations: 121.8 kB / 460.5 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.039e-05/0.4232, allocations: 27.7 kB / 460.5 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.896e-05/0.4232, allocations: 29.97 kB / 460.5 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4232, allocations: 0 / 460.5 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.4233, allocations: 4 kB / 460.5 MB, free: 3.926 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4233, allocations: 3.984 kB / 460.5 MB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009157/0.4242, allocations: 0.792 MB / 461.3 MB, free: 3.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4242, allocations: 0 / 461.3 MB, free: 3.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.4243, allocations: 19.98 kB / 461.4 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002401/0.4246, allocations: 92.84 kB / 461.4 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.4246, allocations: 8 kB / 461.5 MB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001873/0.4265, allocations: 1.938 MB / 463.4 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4265, allocations: 0 / 463.4 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005405/0.427, allocations: 454.9 kB / 463.8 MB, free: 416 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.4272, allocations: 124.7 kB / 464 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.4272, allocations: 8 kB / 464 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.4274, allocations: 19.98 kB / 464 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.555e-05/0.4275, allocations: 36.05 kB / 464 MB, free: 208 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.4275, allocations: 11.94 kB / 464 MB, free: 196 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001489/0.4277, allocations: 177.4 kB / 464.2 MB, free: 20 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4277, allocations: 0 / 464.2 MB, free: 20 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004305/0.4281, allocations: 87.89 kB / 464.3 MB, free: 15.93 MB / 346.7 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.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * 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.0008672/0.429, allocations: 1.056 MB / 465.3 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005921/0.4296, allocations: 338.2 kB / 465.7 MB, free: 14.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4296, allocations: 0 / 465.7 MB, free: 14.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003617/0.43, allocations: 258.6 kB / 465.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.4303, allocations: 53.23 kB / 466 MB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.4314, allocations: 478.4 kB / 466.4 MB, free: 13.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.4317, allocations: 0.7755 MB / 467.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.549e-05/0.4318, allocations: 18.08 kB / 467.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.4319, allocations: 83.41 kB / 467.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4319, allocations: 3.938 kB / 467.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.4523, allocations: 6.631 MB / 474 MB, free: 6.137 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.4525, allocations: 182.9 kB / 474.1 MB, free: 5.914 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.186, allocations: 0 / 474.1 MB, free: 5.914 MB / 346.7 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) 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