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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001641/0.001641, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 59.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2906, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004912/0.2955, allocations: 4.083 MB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.2977, allocations: 1.063 MB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003045/0.298, allocations: 11.94 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002899/0.2983, allocations: 91.12 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00035/0.2987, allocations: 174.5 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.2993, allocations: 231.6 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007653/0.3001, allocations: 0.8173 MB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002607/0.3003, allocations: 170.6 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003949/0.3007, allocations: 326.9 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003815/0.3011, allocations: 366.6 kB / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.3012, allocations: 80 kB / 416.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.3014, allocations: 84 kB / 416.2 MB, free: 10 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.3015, allocations: 163.4 kB / 416.4 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002622/0.3018, allocations: 342.4 kB / 416.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007169/0.3025, allocations: 0.8528 MB / 417.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3025, allocations: 4 kB / 417.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3025, allocations: 0 / 417.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.3025, allocations: 0 / 417.6 MB, free: 8.648 MB / 334.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.002505/0.3051, allocations: 1.042 MB / 418.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3051, allocations: 8.031 kB / 418.6 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.915e-05/0.3052, allocations: 74.7 kB / 418.7 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002127/0.3054, allocations: 68.27 kB / 418.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006066/0.306, allocations: 429.8 kB / 419.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.783e-05/0.3061, allocations: 29.38 kB / 419.2 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.296e-05/0.3062, allocations: 36.38 kB / 419.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.3076, allocations: 0.6108 MB / 419.9 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.3076, allocations: 0 / 419.9 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.707e-05/0.3077, allocations: 12 kB / 419.9 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.3077, allocations: 8 kB / 419.9 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.3096, allocations: 0.6479 MB / 420.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003602/0.3132, allocations: 2.149 MB / 422.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003889/0.3172, allocations: 0.8705 MB / 423.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.3182, allocations: 408.4 kB / 424 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-05/0.3183, allocations: 8.312 kB / 424 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.3194, allocations: 426.7 kB / 424.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.013e-06/0.3195, allocations: 4 kB / 424.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01422/0.3337, allocations: 2.387 MB / 426.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/0.3338, allocations: 81.11 kB / 426.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005146/0.3343, allocations: 421.8 kB / 427.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.972e-05/0.3344, allocations: 37.7 kB / 427.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.3345, allocations: 236.6 kB / 427.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.3347, allocations: 130.1 kB / 427.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.3348, allocations: 74.06 kB / 427.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.335, allocations: 362.7 kB / 428.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009631/0.3359, allocations: 300.6 kB / 428.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009613/0.3369, allocations: 338 kB / 428.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001845/0.3388, allocations: 0.5991 MB / 429.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3388, allocations: 0 / 429.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003621/0.3424, allocations: 0.9978 MB / 430.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.855e-05/0.3425, allocations: 37.69 kB / 430.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3425, allocations: 0 / 430.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001264/0.3438, allocations: 432.4 kB / 430.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004798/0.3442, allocations: 91.86 kB / 430.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008378/0.3526, allocations: 3.812 MB / 434.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006501/0.3533, allocations: 91.7 kB / 434.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.82e-05/0.3534, allocations: 15.98 kB / 434.8 MB, free: 6.941 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.0002507/0.3536, allocations: 181.7 kB / 434.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-05/0.3537, allocations: 47.44 kB / 435 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.3538, allocations: 52.53 kB / 435 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3539, allocations: 12.06 kB / 435.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.3539, allocations: 0 / 435.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3539, allocations: 4 kB / 435.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006918/0.3546, allocations: 0.6182 MB / 435.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3546, allocations: 0 / 435.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005027/0.3551, allocations: 87.86 kB / 435.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.3563, allocations: 436.5 kB / 436.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.479e-05/0.3564, allocations: 4 kB / 436.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008361/0.3647, allocations: 3.805 MB / 440 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3648, allocations: 0 / 440 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00593/0.3707, allocations: 1.501 MB / 441.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.371, allocations: 176.5 kB / 441.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.594e-05/0.3711, allocations: 19.88 kB / 441.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006041/0.3717, allocations: 75.91 kB / 441.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.3718, allocations: 47.94 kB / 441.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-05/0.3719, allocations: 11.98 kB / 441.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003325/0.3722, allocations: 295.2 kB / 442.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3722, allocations: 0 / 442.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006421/0.3729, allocations: 167.8 kB / 442.3 MB, free: 15.19 MB / 366.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.006268/0.3792, allocations: 2.067 MB / 444.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.382, allocations: 0.9584 MB / 445.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.382, allocations: 0 / 445.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.3836, allocations: 0.5996 MB / 445.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.3842, allocations: 93.31 kB / 446 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01596/0.4001, allocations: 5.959 MB / 452 MB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.4007, allocations: 0.8433 MB / 452.8 MB, free: 4.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002723/0.401, allocations: 39.41 kB / 452.8 MB, free: 4.422 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002634/0.4013, allocations: 163.4 kB / 453 MB, free: 4.262 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4013, allocations: 0 / 453 MB, free: 4.262 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04727/0.4486, allocations: 19.03 MB / 472 MB, free: 1.434 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.49, allocations: 11.77 kB / 472 MB, free: 1.43 MB / 382.1 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/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)