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.001163/0.001164, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2893, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005104/0.2945, allocations: 4.099 MB / 412.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.2965, allocations: 1.063 MB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004441/0.297, allocations: 8 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003355/0.2974, allocations: 83.14 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005399/0.2979, allocations: 186.4 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000632/0.2986, allocations: 231.7 kB / 414.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000943/0.2995, allocations: 0.8173 MB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000317/0.2999, allocations: 170.6 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005638/0.3004, allocations: 322.9 kB / 415.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004958/0.301, allocations: 362.6 kB / 416.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001579/0.3011, allocations: 84 kB / 416.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.3013, allocations: 87.94 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.3015, allocations: 167.4 kB / 416.4 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004197/0.3019, allocations: 330.5 kB / 416.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009035/0.3028, allocations: 0.8567 MB / 417.6 MB, free: 8.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.3029, allocations: 4 kB / 417.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3029, allocations: 0 / 417.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.733e-05/0.3029, allocations: 4 kB / 417.6 MB, free: 8.68 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.003126/0.306, allocations: 1.034 MB / 418.6 MB, free: 7.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.3061, allocations: 8.031 kB / 418.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001243/0.3062, allocations: 70.72 kB / 418.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000277/0.3065, allocations: 72.27 kB / 418.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007455/0.3073, allocations: 433.7 kB / 419.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.557e-05/0.3073, allocations: 33.36 kB / 419.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.159e-05/0.3074, allocations: 36.38 kB / 419.3 MB, free: 6.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.309, allocations: 0.603 MB / 419.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.309, allocations: 3.938 kB / 419.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.3091, allocations: 19.98 kB / 419.9 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.3091, allocations: 8 kB / 419.9 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001912/0.311, allocations: 0.6362 MB / 420.5 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004117/0.3151, allocations: 2.161 MB / 422.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00382/0.319, allocations: 0.8666 MB / 423.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.32, allocations: 396.3 kB / 424 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.608e-05/0.3201, allocations: 8.328 kB / 424 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.3212, allocations: 434.6 kB / 424.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 3.156e-06/0.3213, allocations: 0 / 424.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01457/0.3358, allocations: 2.394 MB / 426.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/0.3359, allocations: 81.11 kB / 426.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006525/0.3366, allocations: 421.8 kB / 427.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.196e-05/0.3367, allocations: 37.7 kB / 427.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002121/0.3369, allocations: 232.6 kB / 427.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.3371, allocations: 134.1 kB / 427.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.3373, allocations: 66.06 kB / 427.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.3375, allocations: 362.7 kB / 428.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009244/0.3384, allocations: 300.6 kB / 428.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008994/0.3393, allocations: 338.1 kB / 428.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/0.341, allocations: 0.5951 MB / 429.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3411, allocations: 0 / 429.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003567/0.3446, allocations: 0.9978 MB / 430.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.57e-05/0.3447, allocations: 33.7 kB / 430.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.3447, allocations: 4 kB / 430.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/0.3461, allocations: 432.4 kB / 430.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000501/0.3466, allocations: 103.8 kB / 430.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008768/0.3554, allocations: 3.805 MB / 434.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007231/0.3561, allocations: 95.66 kB / 434.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.871e-05/0.3562, allocations: 12 kB / 434.8 MB, free: 6.977 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.0002942/0.3565, allocations: 177.7 kB / 434.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.3567, allocations: 47.44 kB / 435 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.3568, allocations: 60.52 kB / 435.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.3568, allocations: 4 kB / 435.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3568, allocations: 4 kB / 435.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3568, allocations: 0 / 435.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007527/0.3576, allocations: 0.6182 MB / 435.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3576, allocations: 0 / 435.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.3581, allocations: 87.86 kB / 435.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001149/0.3592, allocations: 436.5 kB / 436.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.868e-05/0.3593, allocations: 8 kB / 436.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008424/0.3677, allocations: 3.8 MB / 440 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3678, allocations: 0 / 440 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006155/0.3739, allocations: 1.505 MB / 441.5 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003492/0.3743, allocations: 180.5 kB / 441.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.3745, allocations: 15.88 kB / 441.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006069/0.3751, allocations: 75.91 kB / 441.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.3752, allocations: 47.94 kB / 441.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.3753, allocations: 11.98 kB / 441.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003319/0.3756, allocations: 295.2 kB / 442.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3756, allocations: 0 / 442.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007148/0.3764, allocations: 175.8 kB / 442.3 MB, free: 15.21 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.006224/0.3826, allocations: 2.057 MB / 444.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002695/0.3853, allocations: 0.9659 MB / 445.3 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3854, allocations: 0 / 445.3 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001622/0.387, allocations: 0.588 MB / 445.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005768/0.3876, allocations: 93.66 kB / 446 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/0.403, allocations: 5.959 MB / 451.9 MB, free: 5.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.4035, allocations: 0.8394 MB / 452.8 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002657/0.4038, allocations: 47.38 kB / 452.8 MB, free: 4.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002739/0.4041, allocations: 167.4 kB / 453 MB, free: 4.293 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4041, allocations: 4 kB / 453 MB, free: 4.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04857/0.4527, allocations: 19.03 MB / 472 MB, free: 1.469 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.46, allocations: 3.844 kB / 472 MB, free: 1.469 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)