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.00138/0.00138, allocations: 181.3 kB / 16.39 MB, free: 5.766 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.385/1.385, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009347/0.0009348, allocations: 102.2 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002882/0.0002882, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2936, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.109/0.4027, allocations: 79.72 MB / 481.3 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.403, allocations: 71.97 kB / 481.4 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01332/0.4163, allocations: 5.125 MB / 486.5 MB, free: 11.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.4164, allocations: 0 / 486.5 MB, free: 11.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.4164, allocations: 4 kB / 486.5 MB, free: 11.51 MB / 362.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.0009428/0.4174, allocations: 0.5788 MB / 487.1 MB, free: 10.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.4174, allocations: 12.03 kB / 487.1 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.352e-05/0.4175, allocations: 70.47 kB / 487.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.784e-05/0.4176, allocations: 31.62 kB / 487.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.4179, allocations: 274.5 kB / 487.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.4179, allocations: 20.55 kB / 487.5 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.651e-05/0.418, allocations: 27.98 kB / 487.5 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.4185, allocations: 284.5 kB / 487.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.4185, allocations: 7.953 kB / 487.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.4186, allocations: 8 kB / 487.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.4186, allocations: 8 kB / 487.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000395/0.419, allocations: 206.2 kB / 488 MB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.4206, allocations: 1.152 MB / 489.1 MB, free: 8.652 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004849/0.4211, allocations: 222.2 kB / 489.4 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.4212, allocations: 192 / 489.4 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/0.4215, allocations: 167.8 kB / 489.5 MB, free: 8.246 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 3.386e-06/0.4215, allocations: 0 / 489.5 MB, free: 8.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001367/0.4229, allocations: 0.5297 MB / 490.1 MB, free: 7.691 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.423, allocations: 106.8 kB / 490.2 MB, free: 7.562 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.4232, allocations: 220.2 kB / 490.4 MB, free: 7.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.4232, allocations: 29.7 kB / 490.4 MB, free: 7.309 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.4233, allocations: 176.4 kB / 490.6 MB, free: 7.133 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.627e-05/0.4234, allocations: 67.02 kB / 490.6 MB, free: 7.066 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.173e-05/0.4234, allocations: 4 kB / 490.6 MB, free: 7.062 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.4236, allocations: 334.8 kB / 491 MB, free: 6.727 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.4237, allocations: 75.97 kB / 491.1 MB, free: 6.652 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.4239, allocations: 128.4 kB / 491.2 MB, free: 6.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.4241, allocations: 78.8 kB / 491.3 MB, free: 6.434 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4241, allocations: 0 / 491.3 MB, free: 6.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004836/0.4246, allocations: 304.7 kB / 491.6 MB, free: 6.129 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.4246, allocations: 8 kB / 491.6 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.4246, allocations: 0 / 491.6 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.4249, allocations: 88.8 kB / 491.6 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.4251, allocations: 31.92 kB / 491.7 MB, free: 6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.4272, allocations: 1.963 MB / 493.6 MB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.4274, allocations: 31.83 kB / 493.7 MB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.4275, allocations: 4 kB / 493.7 MB, free: 3.863 MB / 362.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.0001722/0.4276, allocations: 152.7 kB / 493.8 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.099e-05/0.4277, allocations: 27.78 kB / 493.9 MB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.095e-05/0.4278, allocations: 34.19 kB / 493.9 MB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.716e-06/0.4278, allocations: 4 kB / 493.9 MB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4278, allocations: 3.984 kB / 493.9 MB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.4278, allocations: 0 / 493.9 MB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003628/0.4282, allocations: 349.4 kB / 494.2 MB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4282, allocations: 0 / 494.2 MB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.4283, allocations: 23.97 kB / 494.3 MB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000245/0.4286, allocations: 96.97 kB / 494.4 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.4286, allocations: 4 kB / 494.4 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.4306, allocations: 1.977 MB / 496.3 MB, free: 1.008 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-06/0.4306, allocations: 3.938 kB / 496.3 MB, free: 1.004 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007391/0.4314, allocations: 429 kB / 496.8 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.4315, allocations: 120.8 kB / 496.9 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.375e-05/0.4316, allocations: 4 kB / 496.9 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.4317, allocations: 24.05 kB / 496.9 MB, free: 412 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.285e-05/0.4318, allocations: 40.31 kB / 496.9 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.4318, allocations: 4 kB / 496.9 MB, free: 368 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001789/0.432, allocations: 172.5 kB / 497.1 MB, free: 196 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.432, allocations: 0 / 497.1 MB, free: 196 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004002/0.4324, allocations: 99.72 kB / 497.2 MB, free: 96 kB / 362.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.001061/0.4335, allocations: 0.9628 MB / 498.2 MB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006452/0.4342, allocations: 366.5 kB / 498.5 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4342, allocations: 0 / 498.5 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003711/0.4346, allocations: 261.7 kB / 498.8 MB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.4349, allocations: 56.77 kB / 498.8 MB, free: 14.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002522/0.4374, allocations: 1.921 MB / 0.489 GB, free: 12.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.4378, allocations: 0.7752 MB / 0.4898 GB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.815e-05/0.4379, allocations: 18.3 kB / 0.4898 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.438, allocations: 83.41 kB / 0.4899 GB, free: 11.53 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.438, allocations: 0 / 0.4899 GB, free: 11.53 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.46, allocations: 6.669 MB / 0.4964 GB, free: 5.102 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002405/0.4603, allocations: 213.7 kB / 0.4966 GB, free: 4.859 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.411, allocations: 4 kB / 0.4966 GB, free: 4.855 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