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.001753/0.001753, allocations: 181.1 kB / 16.38 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.512/1.512, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.001186/0.001186, allocations: 93.8 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002915/0.0002914, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.2995, allocations: 50.42 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.4154, allocations: 83.04 MB / 484.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.4157, allocations: 71.95 kB / 484.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02753/0.4433, allocations: 9.294 MB / 494 MB, free: 3.984 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4433, allocations: 0 / 494 MB, free: 3.984 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.53e-05/0.4434, allocations: 8 kB / 494 MB, free: 3.977 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.002736/0.4461, allocations: 0.9572 MB / 495 MB, free: 2.961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.245e-05/0.4462, allocations: 8.031 kB / 495 MB, free: 2.953 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001996/0.4464, allocations: 82.41 kB / 495 MB, free: 2.863 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.4466, allocations: 59.28 kB / 495.1 MB, free: 2.805 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007477/0.4473, allocations: 389 kB / 495.5 MB, free: 2.387 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.4474, allocations: 33 kB / 495.5 MB, free: 2.352 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.4475, allocations: 43.89 kB / 495.6 MB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.4491, allocations: 0.638 MB / 496.2 MB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.4491, allocations: 4 kB / 496.2 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.4492, allocations: 16 kB / 496.2 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.4492, allocations: 8 kB / 496.2 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.4512, allocations: 0.6987 MB / 496.9 MB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004262/0.4555, allocations: 2.192 MB / 499.1 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004482/0.46, allocations: 1.023 MB / 0.4884 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.833e-05/0.4601, allocations: 12.31 kB / 0.4884 GB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001272/0.4614, allocations: 472.1 kB / 0.4889 GB, free: 13.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 4.208e-06/0.4614, allocations: 0 / 0.4889 GB, free: 13.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.01127/0.4727, allocations: 2.236 MB / 0.4911 GB, free: 10.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.371e-05/0.4728, allocations: 93.03 kB / 0.4911 GB, free: 10.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.4734, allocations: 361.2 kB / 0.4915 GB, free: 10.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.742e-05/0.4735, allocations: 37.7 kB / 0.4915 GB, free: 10.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.4737, allocations: 220.6 kB / 0.4917 GB, free: 10.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.4738, allocations: 134.1 kB / 0.4919 GB, free: 9.977 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.4739, allocations: 8 kB / 0.4919 GB, free: 9.969 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.4741, allocations: 362.7 kB / 0.4922 GB, free: 9.605 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009467/0.475, allocations: 332.6 kB / 0.4925 GB, free: 9.277 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000963/0.476, allocations: 374.1 kB / 0.4929 GB, free: 8.902 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009577/0.477, allocations: 347.6 kB / 0.4932 GB, free: 8.559 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.477, allocations: 0 / 0.4932 GB, free: 8.559 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002742/0.4797, allocations: 0.9678 MB / 0.4942 GB, free: 7.574 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.57e-05/0.4798, allocations: 37.66 kB / 0.4942 GB, free: 7.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.4798, allocations: 3.984 kB / 0.4942 GB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.4811, allocations: 424 kB / 0.4946 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.4817, allocations: 107.8 kB / 0.4947 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00949/0.4912, allocations: 3.612 MB / 0.4982 GB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009406/0.4921, allocations: 115.7 kB / 0.4984 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.469e-05/0.4922, allocations: 15.98 kB / 0.4984 GB, free: 3.133 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 () * Number of clocked 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.0003991/0.4927, allocations: 177.8 kB / 0.4985 GB, free: 2.949 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.4928, allocations: 43.44 kB / 0.4986 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001594/0.493, allocations: 56.41 kB / 0.4986 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.493, allocations: 4 kB / 0.4986 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.493, allocations: 0 / 0.4986 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.493, allocations: 3.984 kB / 0.4986 GB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000888/0.4939, allocations: 0.6145 MB / 0.4992 GB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4939, allocations: 0 / 0.4992 GB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.4944, allocations: 95.92 kB / 0.4993 GB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.4956, allocations: 424.5 kB / 0.4997 GB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.4957, allocations: 11.98 kB / 0.4997 GB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2598/0.7556, allocations: 3.593 MB / 0.5033 GB, free: 98.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.7556, allocations: 1.375 kB / 0.5033 GB, free: 98.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004061/0.7597, allocations: 1.366 MB / 0.5046 GB, free: 98.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000302/0.76, allocations: 183.8 kB / 0.5048 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.518e-05/0.7601, allocations: 12.52 kB / 0.5048 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006873/0.7608, allocations: 94.95 kB / 0.5049 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.761, allocations: 55.56 kB / 0.5049 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.761, allocations: 12.59 kB / 0.5049 GB, free: 98.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000321/0.7614, allocations: 288.5 kB / 0.5052 GB, free: 98.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7614, allocations: 0 / 0.5052 GB, free: 98.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007317/0.7621, allocations: 187.4 kB / 0.5054 GB, free: 98.14 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) * Number of clocked states: 0 () * 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.00377/0.7659, allocations: 1.94 MB / 0.5073 GB, free: 97.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002469/0.7684, allocations: 0.9947 MB / 0.5083 GB, free: 97.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.7684, allocations: 0 / 0.5083 GB, free: 97.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.7698, allocations: 0.5979 MB / 0.5088 GB, free: 97.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.7703, allocations: 74.19 kB / 0.5089 GB, free: 97.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/0.7807, allocations: 4.389 MB / 0.5132 GB, free: 95.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.7811, allocations: 0.8473 MB / 0.514 GB, free: 94.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002926/0.7814, allocations: 44.27 kB / 0.5141 GB, free: 94.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.7816, allocations: 158.6 kB / 0.5142 GB, free: 94.43 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7816, allocations: 3.969 kB / 0.5142 GB, free: 94.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03387/0.8155, allocations: 15.39 MB / 0.5293 GB, free: 82.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002128/0.8157, allocations: 210.1 kB / 0.5295 GB, free: 81.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.605/3.421, allocations: 0 / 0.5295 GB, free: 81.96 MB / 378.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)