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.001833/0.001833, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002199/0.002199, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 67.81 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2744, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005394/0.2799, allocations: 4.099 MB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.2819, allocations: 1.071 MB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.2821, allocations: 4 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.2824, allocations: 87.14 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.2828, allocations: 178.4 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.2833, allocations: 235.6 kB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007999/0.2841, allocations: 0.8095 MB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002955/0.2844, allocations: 168.9 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004505/0.2849, allocations: 326.9 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004237/0.2853, allocations: 358.6 kB / 416.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.2854, allocations: 80 kB / 416.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001385/0.2856, allocations: 91.98 kB / 416.2 MB, free: 10 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.2857, allocations: 163.4 kB / 416.4 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003051/0.286, allocations: 334.5 kB / 416.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008545/0.2869, allocations: 0.8709 MB / 417.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2869, allocations: 0 / 417.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2869, allocations: 0 / 417.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.2869, allocations: 0 / 417.6 MB, free: 8.641 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.002663/0.2896, allocations: 1.049 MB / 418.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.2896, allocations: 8.031 kB / 418.7 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.2897, allocations: 82.66 kB / 418.7 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.29, allocations: 72.55 kB / 418.8 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006405/0.2906, allocations: 426.2 kB / 419.2 MB, free: 6.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/0.2907, allocations: 33.36 kB / 419.3 MB, free: 6.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.629e-05/0.2908, allocations: 36.38 kB / 419.3 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.2922, allocations: 0.6069 MB / 419.9 MB, free: 6.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.2922, allocations: 0 / 419.9 MB, free: 6.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.481e-05/0.2923, allocations: 19.94 kB / 419.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.2923, allocations: 8 kB / 419.9 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00183/0.2941, allocations: 0.644 MB / 420.6 MB, free: 5.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003695/0.2978, allocations: 2.161 MB / 422.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003875/0.3017, allocations: 0.8582 MB / 423.6 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.3027, allocations: 401.3 kB / 424 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.3028, allocations: 8.328 kB / 424 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001102/0.3039, allocations: 434.6 kB / 424.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.605e-06/0.3039, allocations: 0 / 424.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01471/0.3186, allocations: 2.391 MB / 426.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.3187, allocations: 81.11 kB / 426.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005749/0.3193, allocations: 413.9 kB / 427.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.651e-05/0.3194, allocations: 41.69 kB / 427.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.3196, allocations: 236.9 kB / 427.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.3198, allocations: 142.8 kB / 427.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.32, allocations: 70.06 kB / 427.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.3202, allocations: 358.7 kB / 428.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009648/0.3211, allocations: 300.6 kB / 428.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009259/0.3221, allocations: 338.1 kB / 428.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001859/0.3239, allocations: 0.599 MB / 429.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.324, allocations: 0 / 429.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003859/0.3278, allocations: 0.9981 MB / 430.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.187e-05/0.3279, allocations: 33.7 kB / 430.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.3279, allocations: 0 / 430.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001437/0.3294, allocations: 440.3 kB / 430.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000485/0.3299, allocations: 95.91 kB / 430.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009113/0.339, allocations: 3.813 MB / 434.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007718/0.3398, allocations: 99.69 kB / 434.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.695e-05/0.3399, allocations: 12 kB / 434.8 MB, free: 6.898 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.000323/0.3402, allocations: 169.8 kB / 435 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.3403, allocations: 51.67 kB / 435 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001432/0.3405, allocations: 68.45 kB / 435.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.3405, allocations: 4 kB / 435.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3405, allocations: 0 / 435.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3405, allocations: 0 / 435.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008775/0.3414, allocations: 0.6222 MB / 435.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3414, allocations: 3.938 kB / 435.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004803/0.3419, allocations: 83.92 kB / 435.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/0.3432, allocations: 436.5 kB / 436.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.3432, allocations: 8 kB / 436.3 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008918/0.3522, allocations: 3.808 MB / 440.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3522, allocations: 0 / 440.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006088/0.3583, allocations: 1.498 MB / 441.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/0.3586, allocations: 184.7 kB / 441.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.542e-05/0.3587, allocations: 15.88 kB / 441.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005832/0.3593, allocations: 79.91 kB / 441.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.3595, allocations: 43.94 kB / 441.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.3595, allocations: 15.98 kB / 441.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003745/0.3599, allocations: 295.2 kB / 442.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3599, allocations: 0 / 442.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00064/0.3605, allocations: 183.8 kB / 442.4 MB, free: 15.12 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.006445/0.367, allocations: 2.059 MB / 444.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00278/0.3698, allocations: 0.9619 MB / 445.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3698, allocations: 0 / 445.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.3714, allocations: 0.5921 MB / 446 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005642/0.372, allocations: 101.3 kB / 446.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/0.3874, allocations: 5.955 MB / 452 MB, free: 5.273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005378/0.388, allocations: 0.8394 MB / 452.9 MB, free: 4.406 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002453/0.3882, allocations: 51.38 kB / 452.9 MB, free: 4.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002777/0.3885, allocations: 171.4 kB / 453.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3885, allocations: 0 / 453.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05124/0.4398, allocations: 18.54 MB / 471.6 MB, free: 1.852 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.97, allocations: 4.953 kB / 471.6 MB, free: 1.848 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)