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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002342/0.002342, allocations: 111.9 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002494/0.002494, allocations: 198.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.2/3.2, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002279/0.002279, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8376/0.84, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.0137/0.8538, allocations: 4.046 MB / 404.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01201/0.8659, allocations: 1.024 MB / 405.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006097/0.8666, allocations: 11.94 kB / 405.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003876/0.867, allocations: 83.14 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006161/0.8677, allocations: 182.4 kB / 405.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008373/0.8685, allocations: 211.7 kB / 405.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.8697, allocations: 0.8095 MB / 406.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004387/0.8702, allocations: 166.6 kB / 406.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005696/0.8708, allocations: 315 kB / 407.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006018/0.8714, allocations: 362.6 kB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001674/0.8716, allocations: 80 kB / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.8717, allocations: 80 kB / 407.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.8719, allocations: 159.5 kB / 407.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004331/0.8724, allocations: 334.4 kB / 408.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.8735, allocations: 0.8372 MB / 408.9 MB, free: 120 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.8735, allocations: 0 / 408.9 MB, free: 120 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.8736, allocations: 0 / 408.9 MB, free: 120 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.8736, allocations: 0 / 408.9 MB, free: 120 kB / 318.1 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.007948/0.8815, allocations: 1.026 MB / 409.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.491e-05/0.8816, allocations: 8.031 kB / 409.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.8818, allocations: 70.72 kB / 410 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.882, allocations: 68.17 kB / 410.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009582/0.8829, allocations: 414 kB / 410.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.225e-05/0.883, allocations: 29.38 kB / 410.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.8831, allocations: 48.3 kB / 410.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002005/0.8851, allocations: 0.5952 MB / 411.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.8852, allocations: 3.984 kB / 411.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.85e-05/0.8853, allocations: 12 kB / 411.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.8853, allocations: 12 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/0.8968, allocations: 0.6206 MB / 411.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01895/0.9158, allocations: 2.149 MB / 413.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00688/0.9228, allocations: 0.8424 MB / 414.8 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002231/0.9251, allocations: 394.3 kB / 415.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.336e-05/0.9252, allocations: 4.328 kB / 415.2 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002126/0.9273, allocations: 426.6 kB / 415.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 5.38e-06/0.9273, allocations: 0 / 415.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.02689/0.9542, allocations: 2.294 MB / 417.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.9544, allocations: 81.11 kB / 418 MB, free: 6.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.9557, allocations: 410 kB / 418.4 MB, free: 6.336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.9559, allocations: 29.7 kB / 418.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/0.9563, allocations: 228.6 kB / 418.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003266/0.9567, allocations: 134.1 kB / 418.7 MB, free: 5.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003775/0.9571, allocations: 73.97 kB / 418.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002725/0.9574, allocations: 362.7 kB / 419.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001824/0.9592, allocations: 288.6 kB / 419.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.9611, allocations: 338 kB / 419.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003547/0.9647, allocations: 0.5796 MB / 420.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.9647, allocations: 0 / 420.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.007179/0.9719, allocations: 0.9743 MB / 421.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.444e-05/0.9721, allocations: 37.7 kB / 421.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.9721, allocations: 0 / 421.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002458/0.9746, allocations: 396.5 kB / 421.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.9756, allocations: 91.86 kB / 421.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01615/0.9918, allocations: 3.667 MB / 425.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.9933, allocations: 87.61 kB / 425.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/0.9935, allocations: 31.92 kB / 425.6 MB, free: 14.84 MB / 350.1 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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0005877/0.9941, allocations: 173.7 kB / 425.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000237/0.9944, allocations: 43.44 kB / 425.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002496/0.9946, allocations: 60.45 kB / 425.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.9947, allocations: 4 kB / 425.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.9947, allocations: 0 / 425.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.9947, allocations: 0 / 425.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.9963, allocations: 0.6029 MB / 426.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.9963, allocations: 4 kB / 426.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009406/0.9973, allocations: 83.91 kB / 426.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002205/0.9995, allocations: 400.5 kB / 427 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-05/0.9996, allocations: 19.92 kB / 427 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/1.012, allocations: 3.657 MB / 430.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.012, allocations: 0 / 430.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/1.023, allocations: 1.441 MB / 432.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005512/1.023, allocations: 188.5 kB / 432.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/1.024, allocations: 7.938 kB / 432.3 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009539/1.025, allocations: 67.91 kB / 432.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000291/1.025, allocations: 51.94 kB / 432.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.63e-05/1.025, allocations: 15.98 kB / 432.4 MB, free: 7.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006107/1.026, allocations: 291.2 kB / 432.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/1.026, allocations: 0 / 432.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001198/1.027, allocations: 175.8 kB / 432.9 MB, free: 7.344 MB / 350.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02071/1.047, allocations: 2.018 MB / 434.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004756/1.052, allocations: 0.9228 MB / 435.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.052, allocations: 0 / 435.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002584/1.055, allocations: 0.5645 MB / 436.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/1.056, allocations: 93.59 kB / 436.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02547/1.082, allocations: 5.793 MB / 442.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/1.083, allocations: 0.8356 MB / 443.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004406/1.083, allocations: 47.39 kB / 443.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004248/1.084, allocations: 159.4 kB / 443.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of SimCode: time 1.713e-06/1.084, allocations: 0 / 443.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2477/1.332, allocations: 18.78 MB / 462.1 MB, free: 10.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 29.77/31.1, allocations: 10.75 kB / 462.1 MB, free: 10.15 MB / 382.1 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/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)