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.001551/0.001556, allocations: 184.6 kB / 16.41 MB, free: 5.727 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.961/1.961, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001176/0.001175, allocations: 84.48 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005434/0.0005434, allocations: 16 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3383, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4673, allocations: 78.33 MB / 453 MB, free: 2.305 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003291/0.4677, allocations: 75.97 kB / 453 MB, free: 2.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02183/0.4895, allocations: 4.962 MB / 458 MB, free: 13.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4896, allocations: 3.938 kB / 458 MB, free: 13.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.13e-05/0.4896, allocations: 8 kB / 458 MB, free: 13.23 MB / 346.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.001426/0.4911, allocations: 0.5786 MB / 458.6 MB, free: 12.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.4912, allocations: 12.03 kB / 458.6 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001298/0.4913, allocations: 66.53 kB / 458.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.4914, allocations: 31.62 kB / 458.7 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004958/0.4919, allocations: 274.5 kB / 459 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.492, allocations: 24.52 kB / 459 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.312e-05/0.4921, allocations: 24 kB / 459 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000815/0.4929, allocations: 284.5 kB / 459.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.4929, allocations: 4 kB / 459.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.022e-05/0.493, allocations: 12 kB / 459.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.493, allocations: 4 kB / 459.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006858/0.4937, allocations: 206.3 kB / 459.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.4966, allocations: 1.149 MB / 460.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008161/0.4975, allocations: 223.1 kB / 460.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.4975, allocations: 4.188 kB / 460.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000516/0.4981, allocations: 171.8 kB / 461 MB, free: 9.973 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.906e-06/0.4981, allocations: 0 / 461 MB, free: 9.973 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.002466/0.5006, allocations: 0.5199 MB / 461.6 MB, free: 9.426 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.003e-05/0.5007, allocations: 110.8 kB / 461.7 MB, free: 9.293 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000399/0.5011, allocations: 220.2 kB / 461.9 MB, free: 9.074 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.326e-05/0.5012, allocations: 29.7 kB / 461.9 MB, free: 9.039 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.5014, allocations: 226.9 kB / 462.1 MB, free: 8.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.5015, allocations: 78.92 kB / 462.2 MB, free: 8.738 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/0.5015, allocations: 0 / 462.2 MB, free: 8.738 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5017, allocations: 322.8 kB / 462.5 MB, free: 8.414 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002937/0.502, allocations: 76.47 kB / 462.6 MB, free: 8.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.5023, allocations: 120.5 kB / 462.7 MB, free: 8.203 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.5026, allocations: 81.16 kB / 462.8 MB, free: 8.125 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.5027, allocations: 4 kB / 462.8 MB, free: 8.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009034/0.5036, allocations: 285 kB / 463.1 MB, free: 7.836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.5036, allocations: 8.938 kB / 463.1 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.5036, allocations: 0 / 463.1 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005629/0.5042, allocations: 92.73 kB / 463.2 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/0.5045, allocations: 31.92 kB / 463.2 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003609/0.5081, allocations: 1.964 MB / 465.2 MB, free: 5.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004241/0.5086, allocations: 31.83 kB / 465.2 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.636e-05/0.5087, allocations: 12.3 kB / 465.2 MB, free: 5.555 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 () * 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.0002796/0.509, allocations: 151.1 kB / 465.4 MB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.857e-05/0.509, allocations: 23.72 kB / 465.4 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.5092, allocations: 34.23 kB / 465.4 MB, free: 5.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.5092, allocations: 4 kB / 465.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.5092, allocations: 0 / 465.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.5092, allocations: 0 / 465.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005898/0.5098, allocations: 361.2 kB / 465.8 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.5098, allocations: 4 kB / 465.8 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.5101, allocations: 19.98 kB / 465.8 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004686/0.5106, allocations: 88.86 kB / 465.9 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.5106, allocations: 11.98 kB / 465.9 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003539/0.5142, allocations: 1.959 MB / 467.9 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.5142, allocations: 4.031 kB / 467.9 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.5157, allocations: 428.5 kB / 468.3 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.5159, allocations: 117.2 kB / 468.4 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.422e-05/0.516, allocations: 8 kB / 468.4 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003195/0.5163, allocations: 28.03 kB / 468.4 MB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.5165, allocations: 31.95 kB / 468.5 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.5165, allocations: 12.05 kB / 468.5 MB, free: 2.062 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002716/0.5168, allocations: 176.4 kB / 468.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5168, allocations: 0 / 468.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006261/0.5175, allocations: 91.8 kB / 468.7 MB, free: 1.801 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * 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.00181/0.5193, allocations: 0.9722 MB / 469.7 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.5205, allocations: 358.5 kB / 470.1 MB, free: 444 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.5205, allocations: 0 / 470.1 MB, free: 444 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006696/0.5212, allocations: 275.3 kB / 470.3 MB, free: 156 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000546/0.5217, allocations: 50.92 kB / 470.4 MB, free: 108 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004649/0.5264, allocations: 1.952 MB / 472.3 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.5269, allocations: 0.7713 MB / 473.1 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.5272, allocations: 83.41 kB / 473.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5272, allocations: 0 / 473.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.794/3.321, allocations: 5.761 MB / 479 MB, free: 7.461 MB / 362.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