Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 221.4 MB / 235.5 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008735/0.0008737, allocations: 99.78 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.457e-05/2.462e-05, allocations: 0 / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0967/0.09675, allocations: 50.42 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.282/0.3788, allocations: 79.65 MB / 474 MB, free: 7.824 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001839/0.379, allocations: 71.95 kB / 474.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01264/0.3917, allocations: 5.119 MB / 479.2 MB, free: 2.613 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3917, allocations: 4 kB / 479.2 MB, free: 2.609 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.3917, allocations: 4 kB / 479.2 MB, free: 2.605 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.0007663/0.3925, allocations: 0.547 MB / 479.7 MB, free: 2.016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3926, allocations: 8.031 kB / 479.7 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.997e-05/0.3926, allocations: 58.53 kB / 479.8 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.65e-05/0.3927, allocations: 35.53 kB / 479.8 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.393, allocations: 282.4 kB / 480.1 MB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.393, allocations: 16.56 kB / 480.1 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.3931, allocations: 24 kB / 480.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004487/0.3936, allocations: 276.6 kB / 480.4 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3936, allocations: 3.953 kB / 480.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.243e-05/0.3936, allocations: 8 kB / 480.4 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.3936, allocations: 8 kB / 480.4 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003449/0.394, allocations: 190.4 kB / 480.6 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.3955, allocations: 1.152 MB / 481.8 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004631/0.396, allocations: 207.2 kB / 482 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.3963, allocations: 137.2 kB / 482.1 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.3963, allocations: 192 / 482.1 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002633/0.3966, allocations: 163.7 kB / 482.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.3966, allocations: 0 / 482.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005392/0.3972, allocations: 266.9 kB / 482.5 MB, free: 15.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.178e-05/0.3972, allocations: 140.5 kB / 482.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.3975, allocations: 217.1 kB / 482.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.3975, allocations: 29.7 kB / 482.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3976, allocations: 168.2 kB / 483.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.3977, allocations: 74.98 kB / 483.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.3977, allocations: 4 kB / 483.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3978, allocations: 330.8 kB / 483.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.398, allocations: 67.98 kB / 483.5 MB, free: 13.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.3981, allocations: 109.2 kB / 483.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001406/0.3983, allocations: 75.91 kB / 483.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3983, allocations: 0 / 483.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004317/0.3987, allocations: 270.3 kB / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3987, allocations: 8 kB / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3987, allocations: 0 / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003317/0.3991, allocations: 96.75 kB / 484.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.3992, allocations: 27.92 kB / 484.1 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.4014, allocations: 1.985 MB / 486.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.4017, allocations: 35.77 kB / 486.1 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.4017, allocations: 8 kB / 486.1 MB, free: 11.19 MB / 362.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.0001111/0.4018, allocations: 121.9 kB / 486.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.311e-05/0.4019, allocations: 31.66 kB / 486.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.379e-05/0.4019, allocations: 29.97 kB / 486.3 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.4019, allocations: 4 kB / 486.3 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.4019, allocations: 112 / 486.3 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.402, allocations: 7.922 kB / 486.3 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009192/0.4029, allocations: 0.799 MB / 487.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4029, allocations: 4.031 kB / 487.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.403, allocations: 19.98 kB / 487.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002413/0.4033, allocations: 84.81 kB / 487.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.4033, allocations: 8 kB / 487.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001858/0.4052, allocations: 1.929 MB / 489.2 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4052, allocations: 3.938 kB / 489.2 MB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005498/0.4057, allocations: 446.5 kB / 489.6 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.4059, allocations: 124.8 kB / 489.7 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.375e-05/0.4059, allocations: 8.125 kB / 489.7 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.4061, allocations: 28.06 kB / 489.8 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.252e-05/0.4062, allocations: 39.84 kB / 489.8 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.4062, allocations: 7.984 kB / 489.8 MB, free: 7.258 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001579/0.4064, allocations: 177.4 kB / 490 MB, free: 7.086 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4064, allocations: 0 / 490 MB, free: 7.086 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003884/0.4068, allocations: 87.84 kB / 490.1 MB, free: 7 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.0008294/0.4076, allocations: 1.054 MB / 491.1 MB, free: 5.914 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005794/0.4082, allocations: 350.8 kB / 491.5 MB, free: 5.559 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4082, allocations: 0 / 491.5 MB, free: 5.559 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003401/0.4086, allocations: 254.3 kB / 491.7 MB, free: 5.297 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.4089, allocations: 58.06 kB / 491.8 MB, free: 5.242 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009839/0.4099, allocations: 470.3 kB / 492.2 MB, free: 4.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.4102, allocations: 0.7716 MB / 493 MB, free: 3.953 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.4103, allocations: 26 kB / 493 MB, free: 3.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.4104, allocations: 79.41 kB / 493.1 MB, free: 3.852 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4104, allocations: 4 kB / 493.1 MB, free: 3.848 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01782/0.4282, allocations: 6.628 MB / 499.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.4284, allocations: 179.9 kB / 499.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/2.159, allocations: 0 / 499.9 MB, free: 13.2 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat