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.001514/0.001514, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.017/2.017, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001155/0.001155, allocations: 102 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004271/0.0004267, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3303, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.4618, allocations: 80.42 MB / 455.1 MB, free: 320 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.4622, allocations: 71.91 kB / 455.1 MB, free: 248 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04385/0.506, allocations: 8.568 MB / 463.7 MB, free: 7.629 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5061, allocations: 3.938 kB / 463.7 MB, free: 7.625 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.073e-05/0.5062, allocations: 8 kB / 463.7 MB, free: 7.617 MB / 346.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.004005/0.5102, allocations: 0.9066 MB / 464.6 MB, free: 6.656 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.083e-05/0.5103, allocations: 8.031 kB / 464.6 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002921/0.5106, allocations: 74.53 kB / 464.7 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002174/0.5108, allocations: 63.25 kB / 464.8 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009464/0.5117, allocations: 385 kB / 465.1 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.608e-05/0.5118, allocations: 33 kB / 465.2 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.512, allocations: 39.98 kB / 465.2 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00269/0.5147, allocations: 0.5864 MB / 465.8 MB, free: 5.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.015e-05/0.5148, allocations: 4 kB / 465.8 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.49e-05/0.5149, allocations: 16 kB / 465.8 MB, free: 5.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.5149, allocations: 12 kB / 465.8 MB, free: 5.375 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003581/0.5185, allocations: 0.6402 MB / 466.5 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00706/0.5256, allocations: 2.053 MB / 468.5 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008269/0.5339, allocations: 0.9637 MB / 469.5 MB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.5341, allocations: 4 kB / 469.5 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002165/0.5363, allocations: 431.7 kB / 469.9 MB, free: 1.172 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 3.476e-06/0.5363, allocations: 0 / 469.9 MB, free: 1.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.0177/0.554, allocations: 1.978 MB / 471.9 MB, free: 15.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.178e-05/0.5542, allocations: 93.06 kB / 472 MB, free: 15.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006858/0.5549, allocations: 336.9 kB / 472.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.555, allocations: 29.7 kB / 472.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000234/0.5553, allocations: 271.1 kB / 472.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/0.5555, allocations: 130.1 kB / 472.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.296e-05/0.5556, allocations: 7.938 kB / 472.7 MB, free: 14.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5557, allocations: 330.8 kB / 473.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001695/0.5574, allocations: 304.6 kB / 473.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.5592, allocations: 342.1 kB / 473.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/0.5609, allocations: 319.5 kB / 474 MB, free: 12.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.561, allocations: 4 kB / 474 MB, free: 12.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004599/0.5656, allocations: 0.8901 MB / 474.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.471e-05/0.5657, allocations: 33.7 kB / 474.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.5657, allocations: 0 / 474.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002161/0.5679, allocations: 424.5 kB / 475.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009079/0.5688, allocations: 95.88 kB / 475.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01659/0.5854, allocations: 3.61 MB / 479.1 MB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.5867, allocations: 107.6 kB / 479.2 MB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.761e-05/0.5868, allocations: 12 kB / 479.2 MB, free: 7.668 MB / 362.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.0004024/0.5872, allocations: 173.8 kB / 479.3 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.5874, allocations: 39.53 kB / 479.4 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001645/0.5876, allocations: 48.38 kB / 479.4 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.5876, allocations: 4 kB / 479.4 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.5876, allocations: 8 kB / 479.4 MB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.5876, allocations: 7.938 kB / 479.4 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.5887, allocations: 0.5833 MB / 480 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.5887, allocations: 3.938 kB / 480 MB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008318/0.5896, allocations: 87.88 kB / 480.1 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002603/0.5922, allocations: 424.6 kB / 480.5 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/0.5924, allocations: 8 kB / 480.5 MB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/0.6085, allocations: 3.602 MB / 484.1 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.6086, allocations: 0 / 484.1 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00632/0.6149, allocations: 1.279 MB / 485.4 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003611/0.6153, allocations: 180.4 kB / 485.6 MB, free: 1.004 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.6154, allocations: 11.95 kB / 485.6 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.6166, allocations: 83.92 kB / 485.7 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.6168, allocations: 47.92 kB / 485.7 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.662e-05/0.6169, allocations: 11.98 kB / 485.7 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004722/0.6173, allocations: 271.2 kB / 486 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6174, allocations: 0 / 486 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008554/0.6182, allocations: 171.8 kB / 486.2 MB, free: 432 kB / 362.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.00681/0.625, allocations: 1.843 MB / 488 MB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004421/0.6295, allocations: 0.9468 MB / 489 MB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.6295, allocations: 0 / 489 MB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002587/0.6321, allocations: 0.5724 MB / 489.5 MB, free: 12.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.6328, allocations: 73.69 kB / 489.6 MB, free: 12.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01899/0.6518, allocations: 4.197 MB / 493.8 MB, free: 8.664 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.6525, allocations: 0.8436 MB / 494.7 MB, free: 7.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004277/0.6529, allocations: 151.3 kB / 494.8 MB, free: 7.645 MB / 378.7 MB Notification: Performance of SimCode: time 3.456e-06/0.6529, allocations: 0 / 494.8 MB, free: 7.645 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.987/3.64, allocations: 10.57 MB / 0.4935 GB, free: 110.3 MB / 378.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)