Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.2 MB / 245 MB, free: 7.637 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000864/0.000864, allocations: 102.4 kB / 297.3 MB, free: 6.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002062/0.0002062, allocations: 4 kB / 358 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1765, allocations: 51.48 MB / 409.5 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08846/0.265, allocations: 83.83 MB / 493.3 MB, free: 6.809 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.2653, allocations: 75.97 kB / 493.4 MB, free: 6.734 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02572/0.291, allocations: 9.36 MB / 0.491 GB, free: 13.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.291, allocations: 0 / 0.491 GB, free: 13.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.316e-05/0.291, allocations: 12 kB / 0.491 GB, free: 13.32 MB / 378.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.002079/0.2931, allocations: 0.9688 MB / 0.4919 GB, free: 12.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2932, allocations: 12.03 kB / 0.4919 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.191e-05/0.2933, allocations: 74.52 kB / 0.492 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.2935, allocations: 71.33 kB / 0.4921 GB, free: 12.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005089/0.294, allocations: 404.8 kB / 0.4925 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.294, allocations: 29 kB / 0.4925 GB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.587e-05/0.2941, allocations: 36 kB / 0.4925 GB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.2955, allocations: 0.6302 MB / 0.4931 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.2955, allocations: 3.984 kB / 0.4932 GB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.892e-05/0.2956, allocations: 12 kB / 0.4932 GB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2956, allocations: 8 kB / 0.4932 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001833/0.2974, allocations: 0.7104 MB / 0.4939 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003508/0.3009, allocations: 2.2 MB / 0.496 GB, free: 7.941 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004579/0.3055, allocations: 1.016 MB / 0.497 GB, free: 6.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.894e-05/0.3056, allocations: 4.328 kB / 0.497 GB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00111/0.3067, allocations: 463.3 kB / 0.4975 GB, free: 6.438 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.613e-06/0.3067, allocations: 4 kB / 0.4975 GB, free: 6.434 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.01103/0.3177, allocations: 2.252 MB / 0.4997 GB, free: 4.152 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.3178, allocations: 93.03 kB / 0.4997 GB, free: 4.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/0.3182, allocations: 357.2 kB / 0.5001 GB, free: 3.691 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.3183, allocations: 37.69 kB / 0.5001 GB, free: 3.648 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.3184, allocations: 228.6 kB / 0.5003 GB, free: 3.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.3185, allocations: 134.1 kB / 0.5005 GB, free: 3.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.3186, allocations: 4 kB / 0.5005 GB, free: 3.285 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.3187, allocations: 358.8 kB / 0.5008 GB, free: 2.926 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008918/0.3196, allocations: 332.6 kB / 0.5011 GB, free: 2.598 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008961/0.3205, allocations: 374.1 kB / 0.5015 GB, free: 2.223 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008715/0.3214, allocations: 351.5 kB / 0.5018 GB, free: 1.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3214, allocations: 0 / 0.5018 GB, free: 1.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002412/0.3238, allocations: 0.9677 MB / 0.5028 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.163e-05/0.3239, allocations: 41.69 kB / 0.5028 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3239, allocations: 4 kB / 0.5028 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.325, allocations: 416.5 kB / 0.5032 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004921/0.3255, allocations: 107.8 kB / 0.5033 GB, free: 332 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.151/0.4765, allocations: 3.607 MB / 0.5068 GB, free: 93.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007876/0.4774, allocations: 119 kB / 0.5069 GB, free: 93.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/0.4774, allocations: 14.62 kB / 0.507 GB, free: 93.37 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.0002289/0.4776, allocations: 172.3 kB / 0.5071 GB, free: 93.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.862e-05/0.4777, allocations: 44.03 kB / 0.5072 GB, free: 93.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.4778, allocations: 61 kB / 0.5072 GB, free: 93.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.4778, allocations: 5.719 kB / 0.5072 GB, free: 93.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.4778, allocations: 5.328 kB / 0.5072 GB, free: 93.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.4779, allocations: 1.734 kB / 0.5072 GB, free: 93.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000575/0.4784, allocations: 0.6141 MB / 0.5078 GB, free: 93.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4784, allocations: 0 / 0.5078 GB, free: 93.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004823/0.4789, allocations: 98.25 kB / 0.5079 GB, free: 93.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001039/0.48, allocations: 427 kB / 0.5083 GB, free: 93.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/0.48, allocations: 12.55 kB / 0.5083 GB, free: 93.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007908/0.4879, allocations: 3.602 MB / 0.5119 GB, free: 91.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.488, allocations: 0 / 0.5119 GB, free: 91.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002975/0.491, allocations: 1.374 MB / 0.5132 GB, free: 90.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.4911, allocations: 187.7 kB / 0.5134 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.077e-05/0.4912, allocations: 11.72 kB / 0.5134 GB, free: 90.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006281/0.4919, allocations: 95.56 kB / 0.5135 GB, free: 90.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.492, allocations: 48.08 kB / 0.5135 GB, free: 90.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.681e-05/0.4921, allocations: 17.56 kB / 0.5136 GB, free: 90.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002386/0.4923, allocations: 288.5 kB / 0.5138 GB, free: 90.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4923, allocations: 6.812 kB / 0.5138 GB, free: 90.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000548/0.4929, allocations: 173.6 kB / 0.514 GB, free: 90.48 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.003232/0.4961, allocations: 1.945 MB / 0.5159 GB, free: 89.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002224/0.4983, allocations: 0.9984 MB / 0.5169 GB, free: 89.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4984, allocations: 0 / 0.5169 GB, free: 89.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.4997, allocations: 0.5942 MB / 0.5175 GB, free: 88.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.5, allocations: 76.75 kB / 0.5175 GB, free: 88.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009638/0.5097, allocations: 4.389 MB / 0.5218 GB, free: 86.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.5099, allocations: 0.8448 MB / 0.5226 GB, free: 85.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002237/0.5101, allocations: 42.5 kB / 0.5227 GB, free: 85.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001928/0.5103, allocations: 158.1 kB / 0.5228 GB, free: 85.26 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5103, allocations: 4 kB / 0.5228 GB, free: 85.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.5348, allocations: 15.36 MB / 0.5378 GB, free: 71.18 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001351/0.535, allocations: 213.1 kB / 0.538 GB, free: 70.94 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.174/2.709, allocations: 0 / 0.538 GB, free: 70.94 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)