Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_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.002317/0.002317, allocations: 110.5 kB / 17.73 MB, free: 5.363 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.002337/0.002337, allocations: 191 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.751/1.751, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 51.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1134, allocations: 46.61 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005712/0.1191, allocations: 3.894 MB / 378.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.1212, allocations: 1.033 MB / 379.6 MB, free: 144 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004512/0.1217, allocations: 8 kB / 379.6 MB, free: 136 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000339/0.1221, allocations: 87.14 kB / 379.7 MB, free: 48 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2024/0.3245, allocations: 161.3 kB / 379.8 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006248/0.3252, allocations: 203.8 kB / 380 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007756/0.326, allocations: 0.7613 MB / 380.8 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003028/0.3263, allocations: 175.6 kB / 381 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003572/0.3266, allocations: 298.7 kB / 381.2 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003652/0.327, allocations: 334.2 kB / 381.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.906e-05/0.3271, allocations: 77 kB / 381.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.3273, allocations: 79.97 kB / 381.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.3274, allocations: 148.1 kB / 381.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003256/0.3278, allocations: 310.4 kB / 382.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009297/0.3287, allocations: 0.8049 MB / 383 MB, free: 9.062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3287, allocations: 2.844 kB / 383 MB, free: 9.062 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3287, allocations: 0 / 383 MB, free: 9.062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.3288, allocations: 0 / 383 MB, free: 9.062 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002372/0.3311, allocations: 0.9806 MB / 384 MB, free: 8.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.3312, allocations: 10.8 kB / 384 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001048/0.3313, allocations: 71.41 kB / 384 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.3314, allocations: 58.94 kB / 384.1 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006391/0.3321, allocations: 402.1 kB / 384.5 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/0.3321, allocations: 29.91 kB / 384.5 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.662e-05/0.3322, allocations: 36 kB / 384.6 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.3336, allocations: 0.5602 MB / 385.1 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.3337, allocations: 2.078 kB / 385.1 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.068e-05/0.3337, allocations: 18.75 kB / 385.1 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.3337, allocations: 9.469 kB / 385.1 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.3355, allocations: 0.5768 MB / 385.7 MB, free: 7.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003374/0.3389, allocations: 2 MB / 387.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003527/0.3424, allocations: 0.7892 MB / 388.5 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009168/0.3433, allocations: 366.3 kB / 388.9 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.3434, allocations: 8.688 kB / 388.9 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009808/0.3444, allocations: 398.2 kB / 389.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.024e-06/0.3444, allocations: 1.156 kB / 389.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009026/0.3534, allocations: 1.791 MB / 391.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.3535, allocations: 82.58 kB / 391.1 MB, free: 5.301 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004636/0.354, allocations: 391.3 kB / 391.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.282e-05/0.354, allocations: 36.42 kB / 391.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3542, allocations: 221.2 kB / 391.8 MB, free: 4.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.3543, allocations: 130.5 kB / 391.9 MB, free: 4.781 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/0.3545, allocations: 70.11 kB / 392 MB, free: 4.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.93e-05/0.3546, allocations: 354.7 kB / 392.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008533/0.3554, allocations: 267.4 kB / 392.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008831/0.3563, allocations: 313.2 kB / 392.9 MB, free: 4.207 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.3579, allocations: 0.5479 MB / 393.4 MB, free: 3.984 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3579, allocations: 0 / 393.4 MB, free: 3.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004615/0.3625, allocations: 1.055 MB / 394.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.973e-05/0.3626, allocations: 34.12 kB / 394.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.3626, allocations: 4 kB / 394.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/0.3639, allocations: 393.4 kB / 394.9 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004538/0.3643, allocations: 87.08 kB / 395 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007662/0.372, allocations: 3.683 MB / 398.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007325/0.3728, allocations: 78.03 kB / 398.8 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.3728, allocations: 15.12 kB / 398.8 MB, free: 1.055 MB / 318.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.000267/0.3731, allocations: 177.9 kB / 398.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.778e-05/0.3732, allocations: 44.44 kB / 399 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.3733, allocations: 52.47 kB / 399 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3733, allocations: 5.016 kB / 399 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3733, allocations: 0 / 399 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.3734, allocations: 1.875 kB / 399 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007204/0.3741, allocations: 0.5877 MB / 399.6 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.3741, allocations: 5.391 kB / 399.6 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004281/0.3745, allocations: 78.19 kB / 399.7 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.3757, allocations: 395.4 kB / 400.1 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.484e-05/0.3757, allocations: 16.56 kB / 400.1 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008132/0.3839, allocations: 3.661 MB / 403.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3839, allocations: 0 / 403.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00452/0.3884, allocations: 1.26 MB / 405 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003447/0.3888, allocations: 172.6 kB / 405.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3889, allocations: 10.75 kB / 405.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.3895, allocations: 64.48 kB / 405.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.3896, allocations: 50.44 kB / 405.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.254e-05/0.3897, allocations: 12.25 kB / 405.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003546/0.39, allocations: 276.5 kB / 405.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.39, allocations: 4 kB / 405.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000736/0.3908, allocations: 165.7 kB / 405.8 MB, free: 12.27 MB / 334.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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.004804/0.3956, allocations: 1.814 MB / 407.6 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002644/0.3983, allocations: 0.8743 MB / 408.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3983, allocations: 4.062 kB / 408.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.3998, allocations: 0.5282 MB / 409 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.4004, allocations: 82.89 kB / 409.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/0.4142, allocations: 5.447 MB / 414.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007078/0.415, allocations: 0.8317 MB / 415.4 MB, free: 5.277 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002801/0.4153, allocations: 43.22 kB / 415.4 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.4156, allocations: 155.4 kB / 415.5 MB, free: 5.082 MB / 334.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4156, allocations: 0 / 415.5 MB, free: 5.082 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05489/0.4705, allocations: 17.94 MB / 433.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.56/16.03, allocations: 15.86 kB / 433.5 MB, free: 3.062 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)