Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",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.001463/0.001463, allocations: 174.8 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.378/1.378, allocations: 221.3 MB / 235.5 MB, free: 2.922 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.0009097/0.0009095, allocations: 84.12 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.951e-05/2.953e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09262/0.09266, allocations: 50.41 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3233/0.416, allocations: 82.98 MB / 477.3 MB, free: 4.469 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.4163, allocations: 75.89 kB / 477.4 MB, free: 4.395 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02811/0.4444, allocations: 9.291 MB / 486.7 MB, free: 11.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4445, allocations: 0 / 486.7 MB, free: 11.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.894e-05/0.4445, allocations: 8 kB / 486.7 MB, free: 11.06 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002087/0.4466, allocations: 0.8718 MB / 487.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.4467, allocations: 8.031 kB / 487.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.4468, allocations: 82.45 kB / 487.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.4469, allocations: 59.34 kB / 487.7 MB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005551/0.4475, allocations: 393 kB / 488.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.4475, allocations: 28.78 kB / 488.1 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.525e-05/0.4476, allocations: 39.98 kB / 488.2 MB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008643/0.4485, allocations: 490.2 kB / 488.6 MB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.4485, allocations: 0 / 488.6 MB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.374e-05/0.4486, allocations: 16 kB / 488.7 MB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.4486, allocations: 8 kB / 488.7 MB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007737/0.4494, allocations: 403 kB / 489.1 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003797/0.4532, allocations: 2.199 MB / 491.3 MB, free: 6.266 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003221/0.4564, allocations: 0.7308 MB / 492 MB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004615/0.4569, allocations: 272.9 kB / 492.3 MB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5e-05/0.457, allocations: 4.328 kB / 492.3 MB, free: 5.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005683/0.4575, allocations: 314.7 kB / 492.6 MB, free: 4.926 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.074e-06/0.4576, allocations: 4 kB / 492.6 MB, free: 4.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001332/0.4589, allocations: 0.5563 MB / 493.1 MB, free: 4.355 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.459, allocations: 85.11 kB / 493.2 MB, free: 4.254 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.4594, allocations: 351.2 kB / 493.5 MB, free: 3.906 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.055e-05/0.4595, allocations: 37.64 kB / 493.6 MB, free: 3.863 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.4597, allocations: 232.6 kB / 493.8 MB, free: 3.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.4598, allocations: 134.1 kB / 493.9 MB, free: 3.496 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.4599, allocations: 8 kB / 494 MB, free: 3.488 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.46, allocations: 358.7 kB / 494.3 MB, free: 3.129 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.4604, allocations: 176.8 kB / 494.5 MB, free: 2.953 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003401/0.4607, allocations: 206.3 kB / 494.7 MB, free: 2.742 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.461, allocations: 191.7 kB / 494.9 MB, free: 2.551 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.4611, allocations: 4 kB / 494.9 MB, free: 2.547 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001188/0.4622, allocations: 0.6124 MB / 495.5 MB, free: 1.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.72e-05/0.4623, allocations: 38.89 kB / 495.5 MB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.4623, allocations: 0 / 495.5 MB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008942/0.4632, allocations: 337.2 kB / 495.8 MB, free: 1.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005233/0.4638, allocations: 103.9 kB / 495.9 MB, free: 1.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006923/0.4707, allocations: 3.084 MB / 499 MB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000819/0.4715, allocations: 111.6 kB / 499.1 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.301e-05/0.4716, allocations: 12 kB / 499.2 MB, free: 14.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001582/0.4718, allocations: 132.9 kB / 499.3 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.4719, allocations: 51.44 kB / 499.3 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.472, allocations: 56.58 kB / 499.4 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.4721, allocations: 4 kB / 499.4 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.4721, allocations: 4 kB / 499.4 MB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4721, allocations: 0 / 499.4 MB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006987/0.4728, allocations: 0.6105 MB / 0.4883 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.4728, allocations: 4 kB / 0.4883 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005021/0.4733, allocations: 103.9 kB / 0.4884 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008252/0.4741, allocations: 328.7 kB / 0.4887 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.433e-05/0.4742, allocations: 15.98 kB / 0.4887 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006574/0.4808, allocations: 3.068 MB / 0.4917 GB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4808, allocations: 0 / 0.4917 GB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.4825, allocations: 0.8724 MB / 0.4926 GB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.4827, allocations: 180.5 kB / 0.4927 GB, free: 8.457 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.059e-05/0.4828, allocations: 7.984 kB / 0.4927 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006536/0.4834, allocations: 95.91 kB / 0.4928 GB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.4836, allocations: 59.88 kB / 0.4929 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.935e-05/0.4837, allocations: 8 kB / 0.4929 GB, free: 8.289 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003284/0.484, allocations: 285.2 kB / 0.4932 GB, free: 8.012 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.484, allocations: 0 / 0.4932 GB, free: 8.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006271/0.4846, allocations: 179.7 kB / 0.4933 GB, free: 7.836 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00198/0.4866, allocations: 1.429 MB / 0.4947 GB, free: 6.375 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.4881, allocations: 0.6813 MB / 0.4954 GB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4881, allocations: 0 / 0.4954 GB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009236/0.489, allocations: 450.2 kB / 0.4958 GB, free: 5.211 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.4895, allocations: 85.59 kB / 0.4959 GB, free: 5.133 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.4922, allocations: 0.9848 MB / 0.4969 GB, free: 4.117 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000389/0.4926, allocations: 0.8514 MB / 0.4977 GB, free: 3.238 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002419/0.4928, allocations: 43.39 kB / 0.4978 GB, free: 3.195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.493, allocations: 159.4 kB / 0.4979 GB, free: 3.039 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4931, allocations: 0 / 0.4979 GB, free: 3.039 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03174/0.5248, allocations: 15.25 MB / 0.5128 GB, free: 4.02 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/0.525, allocations: 193.9 kB / 0.513 GB, free: 3.789 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.239/2.764, allocations: 0 / 0.513 GB, free: 3.789 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)