Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_cpp_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.001457/0.001461, allocations: 181.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001148/0.001147, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.446e-05/3.463e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1042, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4766/0.5808, allocations: 78.23 MB / 447.4 MB, free: 14.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.5812, allocations: 70.97 kB / 447.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02114/0.6023, allocations: 4.961 MB / 452.4 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6024, allocations: 0 / 452.4 MB, free: 10.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.342e-05/0.6024, allocations: 4 kB / 452.4 MB, free: 10.72 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.001282/0.6037, allocations: 0.5415 MB / 453 MB, free: 10.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/0.6038, allocations: 8.031 kB / 453 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.6039, allocations: 63.22 kB / 453.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.604, allocations: 43.53 kB / 453.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004569/0.6045, allocations: 279.7 kB / 453.4 MB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.244e-05/0.6046, allocations: 23.89 kB / 453.4 MB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.606e-05/0.6046, allocations: 30.88 kB / 453.4 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006775/0.6053, allocations: 268.4 kB / 453.7 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.6054, allocations: 3.938 kB / 453.7 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.6054, allocations: 11.25 kB / 453.7 MB, free: 9.527 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.6054, allocations: 4 kB / 453.7 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005399/0.606, allocations: 185.7 kB / 453.9 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002595/0.6086, allocations: 1.157 MB / 455 MB, free: 8.398 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007248/0.6094, allocations: 208.8 kB / 455.3 MB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004248/0.6098, allocations: 136.6 kB / 455.4 MB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.6099, allocations: 8.125 kB / 455.4 MB, free: 8.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004244/0.6103, allocations: 164.3 kB / 455.6 MB, free: 8.012 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 6.542e-06/0.6103, allocations: 0 / 455.6 MB, free: 8.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008955/0.6112, allocations: 264.1 kB / 455.8 MB, free: 7.809 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/0.6113, allocations: 128.5 kB / 455.9 MB, free: 7.652 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000382/0.6117, allocations: 216.5 kB / 456.1 MB, free: 7.473 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.458e-05/0.6118, allocations: 32.89 kB / 456.2 MB, free: 7.438 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.612, allocations: 222.2 kB / 456.4 MB, free: 7.242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.755e-05/0.6121, allocations: 73.36 kB / 456.5 MB, free: 7.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.09e-05/0.6121, allocations: 7.688 kB / 456.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.6123, allocations: 314 kB / 456.8 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.6125, allocations: 71 kB / 456.9 MB, free: 6.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.6128, allocations: 118.5 kB / 457 MB, free: 6.719 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.613, allocations: 72.16 kB / 457 MB, free: 6.676 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.613, allocations: 32 / 457 MB, free: 6.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000689/0.6137, allocations: 269.9 kB / 457.3 MB, free: 6.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.6137, allocations: 4 kB / 457.3 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.6138, allocations: 7.891 kB / 457.3 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005594/0.6143, allocations: 103.2 kB / 457.4 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.6146, allocations: 23.98 kB / 457.4 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003386/0.618, allocations: 1.979 MB / 459.4 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00041/0.6185, allocations: 31.86 kB / 459.4 MB, free: 4.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.6185, allocations: 12.06 kB / 459.5 MB, free: 4.395 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 0.0001582/0.6187, allocations: 121.8 kB / 459.6 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.738e-05/0.6188, allocations: 27.7 kB / 459.6 MB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.6189, allocations: 29.97 kB / 459.6 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.6189, allocations: 4 kB / 459.6 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.6189, allocations: 0 / 459.6 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.6189, allocations: 3.984 kB / 459.6 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.6205, allocations: 0.792 MB / 460.4 MB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.6206, allocations: 0 / 460.4 MB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.6208, allocations: 27.92 kB / 460.5 MB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000438/0.6212, allocations: 88.86 kB / 460.5 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.6213, allocations: 4 kB / 460.6 MB, free: 3.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003241/0.6245, allocations: 1.937 MB / 462.5 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.6246, allocations: 0 / 462.5 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.6256, allocations: 447 kB / 462.9 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.6259, allocations: 128.7 kB / 463.1 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.311e-05/0.626, allocations: 8 kB / 463.1 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003777/0.6263, allocations: 23.98 kB / 463.1 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.6265, allocations: 27.95 kB / 463.1 MB, free: 500 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.6266, allocations: 8.094 kB / 463.1 MB, free: 492 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000283/0.6269, allocations: 185.4 kB / 463.3 MB, free: 308 kB / 330.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.6269, allocations: 0 / 463.3 MB, free: 308 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006896/0.6276, allocations: 87.84 kB / 463.4 MB, free: 220 kB / 330.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.001415/0.629, allocations: 1.055 MB / 464.4 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009857/0.63, allocations: 338.2 kB / 464.8 MB, free: 14.78 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.63, allocations: 0 / 464.8 MB, free: 14.78 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005823/0.6306, allocations: 258.6 kB / 465 MB, free: 14.51 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005529/0.6312, allocations: 53.23 kB / 465.1 MB, free: 14.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001743/0.633, allocations: 0.5007 MB / 465.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004754/0.6335, allocations: 0.7716 MB / 466.3 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.6337, allocations: 79.41 kB / 466.4 MB, free: 13.04 MB / 346.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6337, allocations: 0 / 466.4 MB, free: 13.04 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.093/3.726, allocations: 5.713 MB / 472.1 MB, free: 7.328 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat