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.00135/0.00135, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001561/0.001561, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 68.02 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2985, allocations: 50.56 MB / 408.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005056/0.3036, allocations: 4.088 MB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.3056, allocations: 1.059 MB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/0.3059, allocations: 11.94 kB / 413.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002272/0.3061, allocations: 99.06 kB / 414 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.3065, allocations: 178.5 kB / 414.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004781/0.307, allocations: 231.6 kB / 414.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007092/0.3077, allocations: 0.8212 MB / 415.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.308, allocations: 172.9 kB / 415.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004533/0.3084, allocations: 322.9 kB / 415.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003986/0.3088, allocations: 354.6 kB / 416.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.3089, allocations: 84 kB / 416.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.3091, allocations: 88 kB / 416.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.3092, allocations: 167.4 kB / 416.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002916/0.3095, allocations: 338.4 kB / 416.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007858/0.3103, allocations: 0.8631 MB / 417.6 MB, free: 8.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3103, allocations: 4 kB / 417.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3104, allocations: 0 / 417.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.3104, allocations: 0 / 417.6 MB, free: 8.773 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.00249/0.3129, allocations: 1.049 MB / 418.7 MB, free: 7.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3129, allocations: 8.031 kB / 418.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.699e-05/0.313, allocations: 78.72 kB / 418.8 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.3132, allocations: 72.55 kB / 418.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005922/0.3138, allocations: 426.2 kB / 419.2 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.3139, allocations: 29.38 kB / 419.3 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.519e-05/0.3139, allocations: 36.38 kB / 419.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.3153, allocations: 0.6069 MB / 419.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.3153, allocations: 0 / 419.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.961e-05/0.3154, allocations: 19.98 kB / 419.9 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.3154, allocations: 8 kB / 419.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.3172, allocations: 0.644 MB / 420.6 MB, free: 5.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003492/0.3207, allocations: 2.161 MB / 422.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003692/0.3244, allocations: 0.8589 MB / 423.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009713/0.3254, allocations: 397.2 kB / 424 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.803e-05/0.3255, allocations: 12.31 kB / 424 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001092/0.3266, allocations: 430.7 kB / 424.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.144e-06/0.3266, allocations: 0 / 424.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01427/0.3409, allocations: 2.387 MB / 426.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.341, allocations: 85.09 kB / 426.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005021/0.3415, allocations: 413.9 kB / 427.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.601e-05/0.3415, allocations: 37.7 kB / 427.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.3417, allocations: 244.8 kB / 427.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.3419, allocations: 138.8 kB / 427.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.342, allocations: 70.06 kB / 427.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.3422, allocations: 358.7 kB / 428.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000856/0.343, allocations: 300.6 kB / 428.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008674/0.3439, allocations: 346 kB / 428.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.3456, allocations: 0.5913 MB / 429.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.3456, allocations: 4 kB / 429.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003502/0.3491, allocations: 1.006 MB / 430.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.761e-05/0.3492, allocations: 33.7 kB / 430.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.3492, allocations: 0 / 430.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.3505, allocations: 436.4 kB / 430.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005031/0.351, allocations: 99.84 kB / 430.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008769/0.3598, allocations: 3.802 MB / 434.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007452/0.3606, allocations: 99.73 kB / 434.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.483e-05/0.3607, allocations: 15.98 kB / 434.8 MB, free: 7.035 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.0003022/0.361, allocations: 173.7 kB / 435 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/0.3612, allocations: 55.67 kB / 435.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.3613, allocations: 60.52 kB / 435.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3614, allocations: 4 kB / 435.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3614, allocations: 0 / 435.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3614, allocations: 0 / 435.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008297/0.3622, allocations: 0.6222 MB / 435.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3622, allocations: 0 / 435.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.3627, allocations: 87.86 kB / 435.8 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.3639, allocations: 432.6 kB / 436.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.634e-05/0.364, allocations: 8 kB / 436.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008711/0.3727, allocations: 3.809 MB / 440.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3727, allocations: 0 / 440.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006114/0.3789, allocations: 1.502 MB / 441.6 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004028/0.3793, allocations: 184.7 kB / 441.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.3795, allocations: 15.88 kB / 441.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.3801, allocations: 79.91 kB / 441.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.3803, allocations: 43.94 kB / 441.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.3804, allocations: 11.98 kB / 441.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000394/0.3808, allocations: 295.2 kB / 442.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3808, allocations: 8 kB / 442.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007209/0.3815, allocations: 171.8 kB / 442.4 MB, free: 15.26 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.006074/0.3876, allocations: 2.07 MB / 444.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.3903, allocations: 0.9658 MB / 445.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3904, allocations: 0 / 445.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.3919, allocations: 0.596 MB / 446 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005648/0.3925, allocations: 89.66 kB / 446.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01483/0.4073, allocations: 5.962 MB / 452 MB, free: 5.402 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.4078, allocations: 0.8394 MB / 452.9 MB, free: 4.535 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002205/0.408, allocations: 47.38 kB / 452.9 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002437/0.4083, allocations: 175.4 kB / 453.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4083, allocations: 0 / 453.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04537/0.4537, allocations: 18.53 MB / 471.6 MB, free: 1.992 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.33, allocations: 4.953 kB / 471.6 MB, free: 1.988 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-12 --interface-type ModelExchange --solver CVode --output-interval 5e-07 Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)