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.001287/0.001287, allocations: 99.83 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001559/0.001559, allocations: 203.5 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003686, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.1668, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004933/0.1718, allocations: 3.293 MB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002952/0.1748, allocations: 1.041 MB / 362.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005827/0.1754, allocations: 4 kB / 362.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.1757, allocations: 55.52 kB / 362.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000846/0.1766, allocations: 211.3 kB / 362.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006763/0.1773, allocations: 135.8 kB / 362.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.1784, allocations: 0.4951 MB / 363.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002957/0.1787, allocations: 140.1 kB / 363.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004757/0.1792, allocations: 255.1 kB / 363.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004055/0.1796, allocations: 298.8 kB / 364.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.888e-05/0.1797, allocations: 36 kB / 364.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.1798, allocations: 40 kB / 364.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.1799, allocations: 99.56 kB / 364.3 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.1801, allocations: 133.5 kB / 364.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006339/0.1807, allocations: 0.6271 MB / 365 MB, free: 6.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1807, allocations: 3.938 kB / 365 MB, free: 6.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.1807, allocations: 0 / 365 MB, free: 6.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1807, allocations: 0 / 365 MB, free: 6.887 MB / 302.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.002608/0.1834, allocations: 1.003 MB / 366 MB, free: 5.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.1834, allocations: 8.031 kB / 366.1 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.1835, allocations: 74.53 kB / 366.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002274/0.1838, allocations: 71.33 kB / 366.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005653/0.1843, allocations: 397 kB / 366.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/0.1844, allocations: 28.95 kB / 366.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.086e-05/0.1845, allocations: 43.91 kB / 366.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.186, allocations: 0.6379 MB / 367.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.186, allocations: 0 / 367.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.429e-05/0.1861, allocations: 16 kB / 367.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.1861, allocations: 8 kB / 367.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001948/0.188, allocations: 0.7026 MB / 368 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003908/0.192, allocations: 2.2 MB / 370.2 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004023/0.196, allocations: 0.996 MB / 371.2 MB, free: 488 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.586e-05/0.1961, allocations: 12.3 kB / 371.2 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2549/0.451, allocations: 464.2 kB / 371.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 7.504e-06/0.451, allocations: 0 / 371.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01599/0.467, allocations: 2.627 MB / 374.3 MB, free: 19.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.4672, allocations: 83.27 kB / 374.4 MB, free: 19.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006476/0.4678, allocations: 410.3 kB / 374.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.686e-05/0.4679, allocations: 31.77 kB / 374.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.4681, allocations: 231.8 kB / 375 MB, free: 18.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.4683, allocations: 132.6 kB / 375.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.673e-05/0.4683, allocations: 8.156 kB / 375.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4685, allocations: 354.7 kB / 375.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.4696, allocations: 334 kB / 375.9 MB, free: 18.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.4707, allocations: 375.4 kB / 376.2 MB, free: 18.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000994/0.4717, allocations: 355 kB / 376.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.4717, allocations: 0 / 376.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002882/0.4746, allocations: 0.9679 MB / 377.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.597e-05/0.4746, allocations: 37.8 kB / 377.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.4746, allocations: 0 / 377.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.4761, allocations: 419.8 kB / 378 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005516/0.4766, allocations: 107.8 kB / 378.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009026/0.4857, allocations: 3.632 MB / 381.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009625/0.4867, allocations: 116.1 kB / 381.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.196e-05/0.4867, allocations: 10.8 kB / 381.8 MB, free: 15.82 MB / 302.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 ($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.0003639/0.4871, allocations: 174.5 kB / 382 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.4872, allocations: 46.66 kB / 382.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.4874, allocations: 60.28 kB / 382.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.4874, allocations: 8.516 kB / 382.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.4874, allocations: 1 kB / 382.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.4874, allocations: 1.922 kB / 382.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.4884, allocations: 0.6015 MB / 382.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.4884, allocations: 0 / 382.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000602/0.4891, allocations: 104.6 kB / 382.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/0.4905, allocations: 421.7 kB / 383.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.552e-05/0.4906, allocations: 13.34 kB / 383.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009302/0.4999, allocations: 3.617 MB / 386.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.4999, allocations: 1.594 kB / 386.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006621/0.5066, allocations: 1.663 MB / 388.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000348/0.5069, allocations: 175.8 kB / 388.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.345e-05/0.507, allocations: 15.84 kB / 388.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006308/0.5077, allocations: 93.72 kB / 388.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/0.5079, allocations: 56.67 kB / 388.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.774e-05/0.508, allocations: 12.69 kB / 388.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005079/0.5085, allocations: 287.4 kB / 389.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5085, allocations: 0.9688 kB / 389.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009583/0.5095, allocations: 179.4 kB / 389.3 MB, free: 12 MB / 302.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 (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.006453/0.5159, allocations: 2.203 MB / 391.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00294/0.5189, allocations: 1.001 MB / 392.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.5189, allocations: 0 / 392.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.5206, allocations: 0.6069 MB / 393.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005749/0.5212, allocations: 73.97 kB / 393.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/0.5314, allocations: 4.322 MB / 397.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.5318, allocations: 0.8442 MB / 398.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002849/0.532, allocations: 47.38 kB / 398.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.5323, allocations: 159.3 kB / 398.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of SimCode: time 2.074e-06/0.5323, allocations: 4 kB / 398.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03216/0.5644, allocations: 16.45 MB / 415 MB, free: 5.387 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002219/0.5647, allocations: 220 kB / 415.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.314/2.879, allocations: 0 / 415.3 MB, free: 5.145 MB / 318.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/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)