Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009623/0.0009624, allocations: 91.53 kB / 16.3 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 178.4 kB / 17.2 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004622/0.0004623, allocations: 8 kB / 300.8 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.119, allocations: 50.4 MB / 351.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00379/0.1229, allocations: 3.279 MB / 354.5 MB, free: 432 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.1246, allocations: 1.002 MB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000222/0.1249, allocations: 8 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.125, allocations: 59.52 kB / 355.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003894/0.1254, allocations: 207.4 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.1258, allocations: 139.7 kB / 355.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.1263, allocations: 499 kB / 356.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002467/0.1266, allocations: 140.3 kB / 356.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003189/0.1269, allocations: 243.1 kB / 356.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003689/0.1273, allocations: 306.8 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.904e-05/0.1274, allocations: 32 kB / 357.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.2e-05/0.1275, allocations: 36 kB / 357.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.1276, allocations: 103.6 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.1277, allocations: 129.4 kB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005393/0.1283, allocations: 0.6232 MB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1283, allocations: 0 / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1283, allocations: 0 / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1283, allocations: 0 / 358 MB, free: 12.91 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.002497/0.1308, allocations: 1.003 MB / 359 MB, free: 11.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.1309, allocations: 11.97 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.131, allocations: 70.53 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.1311, allocations: 59.34 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005877/0.1317, allocations: 401 kB / 359.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/0.1317, allocations: 29 kB / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.05e-05/0.1318, allocations: 39.91 kB / 359.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.1333, allocations: 0.6341 MB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.1333, allocations: 4 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.371e-05/0.1334, allocations: 12 kB / 360.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1334, allocations: 12 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001935/0.1354, allocations: 0.7104 MB / 361 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003712/0.1391, allocations: 2.204 MB / 363.2 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003918/0.143, allocations: 0.9844 MB / 364.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.1431, allocations: 8.312 kB / 364.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.1443, allocations: 477.9 kB / 364.6 MB, free: 6.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.104e-06/0.1443, allocations: 0 / 364.6 MB, free: 6.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01401/0.1583, allocations: 2.626 MB / 367.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/0.1584, allocations: 85.05 kB / 367.3 MB, free: 3.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000571/0.159, allocations: 406 kB / 367.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.952e-05/0.1591, allocations: 37.7 kB / 367.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.1593, allocations: 232.6 kB / 368 MB, free: 2.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.1594, allocations: 134.1 kB / 368.1 MB, free: 2.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.1595, allocations: 4 kB / 368.1 MB, free: 2.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1596, allocations: 358.8 kB / 368.5 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009363/0.1606, allocations: 332.6 kB / 368.8 MB, free: 1.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009244/0.1615, allocations: 374 kB / 369.2 MB, free: 1.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009443/0.1625, allocations: 359.6 kB / 369.5 MB, free: 1.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1625, allocations: 4 kB / 369.5 MB, free: 1.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002635/0.1651, allocations: 0.96 MB / 370.5 MB, free: 48 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.048e-05/0.1652, allocations: 37.69 kB / 370.5 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.1652, allocations: 0 / 370.5 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2527/0.4179, allocations: 416.2 kB / 370.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006359/0.4186, allocations: 105.6 kB / 371 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009469/0.4281, allocations: 3.624 MB / 374.7 MB, free: 23.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000848/0.4289, allocations: 116.5 kB / 374.8 MB, free: 23.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.893e-05/0.429, allocations: 16.42 kB / 374.8 MB, free: 23.26 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.0003233/0.4293, allocations: 172.8 kB / 375 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.351e-05/0.4294, allocations: 47.3 kB / 375 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001324/0.4296, allocations: 56.45 kB / 375.1 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.4296, allocations: 3.938 kB / 375.1 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.4296, allocations: 1.5 kB / 375.1 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.4296, allocations: 2.016 kB / 375.1 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007714/0.4304, allocations: 0.6204 MB / 375.7 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4304, allocations: 0 / 375.7 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/0.4309, allocations: 96.25 kB / 375.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.4321, allocations: 419.9 kB / 376.2 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.377e-05/0.4322, allocations: 12.77 kB / 376.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008211/0.4404, allocations: 3.623 MB / 379.8 MB, free: 20.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4404, allocations: 3.938 kB / 379.8 MB, free: 20.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006337/0.4468, allocations: 1.645 MB / 381.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003974/0.4472, allocations: 180.6 kB / 381.7 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.019e-05/0.4473, allocations: 11.78 kB / 381.7 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000636/0.448, allocations: 90.86 kB / 381.8 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.4482, allocations: 53.17 kB / 381.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.4483, allocations: 9.516 kB / 381.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004925/0.4488, allocations: 286.4 kB / 382.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4488, allocations: 3.828 kB / 382.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007961/0.4496, allocations: 183.2 kB / 382.3 MB, free: 19.77 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.006458/0.4561, allocations: 2.215 MB / 384.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002923/0.459, allocations: 0.999 MB / 385.5 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.4591, allocations: 1.25 kB / 385.5 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.4607, allocations: 0.591 MB / 386.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/0.4613, allocations: 79.66 kB / 386.2 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.4726, allocations: 4.323 MB / 390.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.473, allocations: 0.8551 MB / 391.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003308/0.4734, allocations: 44.02 kB / 391.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002351/0.4736, allocations: 158.6 kB / 391.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of SimCode: time 1.233e-06/0.4736, allocations: 0 / 391.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/0.5047, allocations: 16.47 MB / 408 MB, free: 84 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.5049, allocations: 219.6 kB / 408.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.498/3.003, allocations: 0 / 408.2 MB, free: 15.84 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)