Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001493/0.001498, allocations: 182.5 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.156/2.156, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001158/0.001157, allocations: 102.2 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004155/0.0004156, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3346, allocations: 47.58 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004663/0.3393, allocations: 3.145 MB / 377.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002474/0.3418, allocations: 1.021 MB / 378.8 MB, free: 42.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005112/0.3424, allocations: 5.438 kB / 378.8 MB, free: 42.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.3426, allocations: 57.14 kB / 378.9 MB, free: 42.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006288/0.3432, allocations: 190.8 kB / 379.1 MB, free: 41.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006172/0.3438, allocations: 135.1 kB / 379.2 MB, free: 41.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009718/0.3448, allocations: 473.8 kB / 379.6 MB, free: 41.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.3452, allocations: 140.4 kB / 379.8 MB, free: 41.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005305/0.3458, allocations: 234.2 kB / 380 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000533/0.3463, allocations: 279.8 kB / 380.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.3464, allocations: 31.03 kB / 380.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.3466, allocations: 31.81 kB / 380.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.3467, allocations: 104.4 kB / 380.4 MB, free: 41.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.3469, allocations: 120.6 kB / 380.6 MB, free: 40.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007324/0.3477, allocations: 0.5965 MB / 381.2 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3477, allocations: 1.906 kB / 381.2 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3477, allocations: 4 kB / 381.2 MB, free: 40.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.3477, allocations: 0 / 381.2 MB, free: 40.47 MB / 298.7 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.003992/0.3517, allocations: 0.9464 MB / 382.1 MB, free: 39.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.3518, allocations: 12.69 kB / 382.1 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002035/0.352, allocations: 82.8 kB / 382.2 MB, free: 39.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.3522, allocations: 54.91 kB / 382.3 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007618/0.353, allocations: 384.6 kB / 382.6 MB, free: 39.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/0.3531, allocations: 31.69 kB / 382.7 MB, free: 39.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.3532, allocations: 36.34 kB / 382.7 MB, free: 39.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002437/0.3556, allocations: 0.591 MB / 383.3 MB, free: 38.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.3557, allocations: 0.9375 kB / 383.3 MB, free: 38.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.47e-05/0.3558, allocations: 16.22 kB / 383.3 MB, free: 38.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.3558, allocations: 8.281 kB / 383.3 MB, free: 38.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003282/0.3591, allocations: 0.6415 MB / 384 MB, free: 38.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005709/0.3649, allocations: 2.051 MB / 386 MB, free: 36.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006771/0.3717, allocations: 0.9308 MB / 386.9 MB, free: 36.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.233e-05/0.3719, allocations: 12.59 kB / 387 MB, free: 36.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001821/0.3737, allocations: 431.7 kB / 387.4 MB, free: 35.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.717e-06/0.3737, allocations: 0 / 387.4 MB, free: 35.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.01729/0.391, allocations: 2.041 MB / 389.4 MB, free: 33.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.3911, allocations: 81.11 kB / 389.5 MB, free: 33.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006022/0.3918, allocations: 381.6 kB / 389.9 MB, free: 33.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001307/0.3919, allocations: 45.69 kB / 389.9 MB, free: 33.22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.3921, allocations: 259.1 kB / 390.2 MB, free: 32.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.3922, allocations: 134.1 kB / 390.3 MB, free: 32.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/0.3923, allocations: 4 kB / 390.3 MB, free: 32.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.361e-05/0.3924, allocations: 326.8 kB / 390.6 MB, free: 32.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/0.3939, allocations: 304.6 kB / 390.9 MB, free: 32.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.3956, allocations: 346.1 kB / 391.3 MB, free: 31.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/0.3971, allocations: 319.5 kB / 391.6 MB, free: 31.53 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.3972, allocations: 0 / 391.6 MB, free: 31.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.008174/0.4054, allocations: 1.155 MB / 392.7 MB, free: 30.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.197e-05/0.4055, allocations: 33.7 kB / 392.8 MB, free: 30.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.4055, allocations: 4 kB / 392.8 MB, free: 30.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002067/0.4076, allocations: 420.5 kB / 393.2 MB, free: 29.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008195/0.4084, allocations: 91.88 kB / 393.3 MB, free: 29.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/0.4221, allocations: 3.633 MB / 396.9 MB, free: 26.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.4234, allocations: 103.7 kB / 397 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/0.4235, allocations: 11.98 kB / 397 MB, free: 25.94 MB / 298.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.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.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.0003211/0.4238, allocations: 177.7 kB / 397.2 MB, free: 25.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.4239, allocations: 47.39 kB / 397.2 MB, free: 25.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.4241, allocations: 56.38 kB / 397.3 MB, free: 25.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.4241, allocations: 4 kB / 397.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4241, allocations: 0 / 397.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.4241, allocations: 3.984 kB / 397.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008484/0.425, allocations: 0.5911 MB / 397.9 MB, free: 25.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.425, allocations: 0 / 397.9 MB, free: 25.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007975/0.4258, allocations: 83.88 kB / 398 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001976/0.4278, allocations: 428.6 kB / 398.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.428, allocations: 4 kB / 398.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/0.4414, allocations: 3.618 MB / 402 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4415, allocations: 0 / 402 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008048/0.4495, allocations: 1.416 MB / 403.4 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003895/0.45, allocations: 168.5 kB / 403.6 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.4501, allocations: 8 kB / 403.6 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.4511, allocations: 87.92 kB / 403.7 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.4514, allocations: 47.92 kB / 403.7 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.416e-05/0.4514, allocations: 8 kB / 403.7 MB, free: 18.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003928/0.4518, allocations: 275.2 kB / 404 MB, free: 18.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4519, allocations: 0 / 404 MB, free: 18.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009005/0.4528, allocations: 167.8 kB / 404.2 MB, free: 18.55 MB / 298.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,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 (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.008368/0.4612, allocations: 1.962 MB / 406.1 MB, free: 16.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004248/0.4655, allocations: 0.942 MB / 407.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.4655, allocations: 0 / 407.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002582/0.4681, allocations: 0.5764 MB / 407.6 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007428/0.4689, allocations: 77.72 kB / 407.7 MB, free: 14.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/0.4866, allocations: 4.126 MB / 411.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.4869, allocations: 0.8469 MB / 412.7 MB, free: 9.859 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004144/0.4874, allocations: 151.4 kB / 412.8 MB, free: 9.711 MB / 298.7 MB Notification: Performance of SimCode: time 1.453e-06/0.4874, allocations: 0 / 412.8 MB, free: 9.711 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.929/3.416, allocations: 11 MB / 423.8 MB, free: 14.72 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)