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.001097/0.001097, allocations: 177.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009633/0.0009633, allocations: 86.69 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.259e-05/2.306e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3693/0.4795, allocations: 77.82 MB / 441 MB, free: 1.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.4798, allocations: 69.59 kB / 441.1 MB, free: 1.484 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01262/0.4924, allocations: 4.913 MB / 446 MB, free: 13.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4924, allocations: 0 / 446 MB, free: 13.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.4925, allocations: 4 kB / 446 MB, free: 13.4 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.0007802/0.4933, allocations: 0.5381 MB / 446.5 MB, free: 12.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4933, allocations: 8.031 kB / 446.5 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.544e-05/0.4934, allocations: 41.61 kB / 446.6 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.4937, allocations: 276.1 kB / 446.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.4937, allocations: 11.95 kB / 446.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.836e-05/0.4938, allocations: 15.94 kB / 446.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003193/0.4941, allocations: 179.2 kB / 447 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.4945, allocations: 238.9 kB / 447.3 MB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.4945, allocations: 0 / 447.3 MB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.4945, allocations: 0 / 447.3 MB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.4946, allocations: 4 kB / 447.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.4961, allocations: 1.099 MB / 448.4 MB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.4965, allocations: 200.3 kB / 448.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.4968, allocations: 126 kB / 448.7 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.4968, allocations: 12.08 kB / 448.7 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.4971, allocations: 155.4 kB / 448.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.4971, allocations: 4 kB / 448.9 MB, free: 10.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005165/0.4976, allocations: 238.3 kB / 449.1 MB, free: 10.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.4977, allocations: 135.5 kB / 449.2 MB, free: 10.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/0.4979, allocations: 196.1 kB / 449.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.4979, allocations: 25.7 kB / 449.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.498, allocations: 171.8 kB / 449.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.245e-05/0.4981, allocations: 62.45 kB / 449.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.4981, allocations: 0 / 449.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.4982, allocations: 337.1 kB / 450 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.4983, allocations: 59.25 kB / 450.1 MB, free: 9.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.4985, allocations: 115.5 kB / 450.2 MB, free: 9.652 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.4986, allocations: 65.47 kB / 450.2 MB, free: 9.613 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4986, allocations: 0 / 450.2 MB, free: 9.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003669/0.499, allocations: 246.5 kB / 450.5 MB, free: 9.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.499, allocations: 4.125 kB / 450.5 MB, free: 9.426 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.499, allocations: 4 kB / 450.5 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003152/0.4993, allocations: 92.3 kB / 450.6 MB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.4995, allocations: 30.55 kB / 450.6 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.5015, allocations: 1.929 MB / 452.5 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.5017, allocations: 27.77 kB / 452.6 MB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.5018, allocations: 11.31 kB / 452.6 MB, free: 7.543 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.0001248/0.5019, allocations: 109.9 kB / 452.7 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004469/0.5024, allocations: 247.1 kB / 452.9 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.217e-05/0.5024, allocations: 27.67 kB / 452.9 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.459e-05/0.5025, allocations: 31.52 kB / 453 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.5025, allocations: 4 kB / 453 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.5025, allocations: 0 / 453 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.5025, allocations: 3.984 kB / 453 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009071/0.5035, allocations: 0.7323 MB / 453.7 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.5035, allocations: 0 / 453.7 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.5036, allocations: 19.98 kB / 453.7 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000295/0.5039, allocations: 85.48 kB / 453.8 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.5039, allocations: 4 kB / 453.8 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.506, allocations: 1.871 MB / 455.7 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.506, allocations: 0 / 455.7 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005467/0.5066, allocations: 425.6 kB / 456.1 MB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.5067, allocations: 119.3 kB / 456.2 MB, free: 4.289 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.5068, allocations: 3.984 kB / 456.2 MB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.507, allocations: 15.98 kB / 456.2 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.5071, allocations: 39.98 kB / 456.3 MB, free: 4.238 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.5071, allocations: 11.89 kB / 456.3 MB, free: 4.227 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000153/0.5073, allocations: 160.4 kB / 456.5 MB, free: 4.098 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5073, allocations: 0 / 456.5 MB, free: 4.098 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005778/0.5079, allocations: 83.78 kB / 456.5 MB, free: 4.016 MB / 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.001001/0.5089, allocations: 1.021 MB / 457.6 MB, free: 3.062 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006562/0.5095, allocations: 324.2 kB / 457.9 MB, free: 2.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5096, allocations: 0 / 457.9 MB, free: 2.809 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003411/0.5099, allocations: 249.2 kB / 458.1 MB, free: 2.602 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.5103, allocations: 39.59 kB / 458.2 MB, free: 2.566 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.5114, allocations: 453.5 kB / 458.6 MB, free: 2.125 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.5118, allocations: 0.7755 MB / 459.4 MB, free: 1.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.576e-05/0.5119, allocations: 22.08 kB / 459.4 MB, free: 1.297 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.544e-05/0.512, allocations: 74.66 kB / 459.5 MB, free: 1.273 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.512, allocations: 0 / 459.5 MB, free: 1.273 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.5391, allocations: 5.748 MB / 465.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.5393, allocations: 142.3 kB / 465.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.305, allocations: 4 kB / 465.4 MB, free: 11.34 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