Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001792/0.001792, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008937/0.0008937, allocations: 98.52 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.314e-05/2.319e-05, allocations: 4 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 51.48 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.347/0.46, allocations: 79.79 MB / 475.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.4603, allocations: 74.5 kB / 475.1 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01264/0.473, allocations: 5.163 MB / 480.3 MB, free: 8.785 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.473, allocations: 2.812 kB / 480.3 MB, free: 8.785 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.473, allocations: 15.98 kB / 480.3 MB, free: 8.77 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.0006821/0.4737, allocations: 0.5495 MB / 480.9 MB, free: 8.203 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.4738, allocations: 8.031 kB / 480.9 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.4739, allocations: 47.61 kB / 480.9 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.4742, allocations: 263.9 kB / 481.2 MB, free: 7.879 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.4742, allocations: 8 kB / 481.2 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/0.4743, allocations: 19.61 kB / 481.2 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003005/0.4746, allocations: 180.7 kB / 481.4 MB, free: 7.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.4749, allocations: 239.6 kB / 481.6 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.475, allocations: 0 / 481.6 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.475, allocations: 0 / 481.6 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.475, allocations: 8 kB / 481.6 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.4762, allocations: 1.088 MB / 482.7 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003837/0.4766, allocations: 201.2 kB / 482.9 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.4769, allocations: 130.5 kB / 483 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.4769, allocations: 4.188 kB / 483 MB, free: 6.383 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001911/0.4771, allocations: 157.6 kB / 483.2 MB, free: 6.242 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.4771, allocations: 0 / 483.2 MB, free: 6.242 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004735/0.4776, allocations: 242.6 kB / 483.4 MB, free: 6.051 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.4777, allocations: 136.3 kB / 483.6 MB, free: 5.891 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.4778, allocations: 196 kB / 483.7 MB, free: 5.727 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.4778, allocations: 29.7 kB / 483.8 MB, free: 5.691 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.4779, allocations: 168.4 kB / 483.9 MB, free: 5.547 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.634e-05/0.478, allocations: 65.83 kB / 484 MB, free: 5.492 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.478, allocations: 4 kB / 484 MB, free: 5.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.212e-05/0.4781, allocations: 330.4 kB / 484.3 MB, free: 5.164 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.212e-05/0.4782, allocations: 60.31 kB / 484.4 MB, free: 5.133 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.4783, allocations: 106.8 kB / 484.5 MB, free: 5.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/0.4784, allocations: 61.33 kB / 484.6 MB, free: 5.008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4784, allocations: 2.062 kB / 484.6 MB, free: 5.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003453/0.4788, allocations: 256.8 kB / 484.8 MB, free: 4.816 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.4788, allocations: 4 kB / 484.8 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.4788, allocations: 0 / 484.8 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002889/0.4791, allocations: 100.8 kB / 484.9 MB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.4792, allocations: 27.94 kB / 484.9 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.4808, allocations: 1.921 MB / 486.9 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.4811, allocations: 31.89 kB / 486.9 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.4811, allocations: 4 kB / 486.9 MB, free: 2.941 MB / 346.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 8.419e-05/0.4812, allocations: 112.6 kB / 487 MB, free: 2.828 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003792/0.4816, allocations: 251.2 kB / 487.2 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.383e-05/0.4816, allocations: 27.67 kB / 487.3 MB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.175e-05/0.4817, allocations: 30.89 kB / 487.3 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.4817, allocations: 4 kB / 487.3 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.4817, allocations: 2.312 kB / 487.3 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.4817, allocations: 0 / 487.3 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007111/0.4824, allocations: 0.7263 MB / 488 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.4825, allocations: 0 / 488 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.4826, allocations: 23.92 kB / 488.1 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002057/0.4828, allocations: 87.06 kB / 488.1 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.4828, allocations: 0 / 488.1 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/0.4842, allocations: 1.871 MB / 490 MB, free: 168 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4842, allocations: 3.125 kB / 490 MB, free: 168 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004701/0.4847, allocations: 421 kB / 490.4 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.4848, allocations: 126.1 kB / 490.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.504e-05/0.4848, allocations: 4.125 kB / 490.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.485, allocations: 15.98 kB / 490.6 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.902e-05/0.4851, allocations: 38.78 kB / 490.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.4852, allocations: 7.984 kB / 490.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001256/0.4853, allocations: 156 kB / 490.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4853, allocations: 0 / 490.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005018/0.4858, allocations: 95.69 kB / 490.9 MB, free: 15.42 MB / 362.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.0008221/0.4866, allocations: 1.022 MB / 491.9 MB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005095/0.4872, allocations: 328.3 kB / 492.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4872, allocations: 0 / 492.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003043/0.4875, allocations: 240 kB / 492.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.4878, allocations: 48.23 kB / 492.5 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.4889, allocations: 455.7 kB / 492.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.4892, allocations: 0.7755 MB / 493.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.142e-05/0.4893, allocations: 18.06 kB / 493.7 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.4894, allocations: 81.97 kB / 493.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4894, allocations: 4 kB / 493.8 MB, free: 12.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02953/0.5189, allocations: 5.727 MB / 499.5 MB, free: 7.082 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002703/0.5193, allocations: 147 kB / 499.7 MB, free: 6.891 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.306, allocations: 0 / 499.7 MB, free: 6.891 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat