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.0008242/0.0008242, allocations: 87.08 kB / 16.31 MB, free: 6.449 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.0009662/0.0009663, allocations: 183.2 kB / 17.21 MB, free: 6.316 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.61/1.61, allocations: 223.2 MB / 241.2 MB, free: 5.27 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002727/0.0002729, allocations: 6.875 kB / 300.9 MB, free: 5.566 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1491, allocations: 50.43 MB / 351.3 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007904/0.1571, allocations: 3.499 MB / 354.8 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003544/0.1607, allocations: 0.9626 MB / 355.8 MB, free: 6.824 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004856/0.1612, allocations: 15.94 kB / 355.8 MB, free: 6.809 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.1615, allocations: 59.52 kB / 355.9 MB, free: 6.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004631/0.162, allocations: 150.7 kB / 356 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004913/0.1625, allocations: 135.8 kB / 356.2 MB, free: 6.469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009127/0.1634, allocations: 0.708 MB / 356.9 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003284/0.1638, allocations: 140 kB / 357 MB, free: 5.613 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004846/0.1643, allocations: 243.1 kB / 357.2 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005671/0.1649, allocations: 306.8 kB / 357.5 MB, free: 5.074 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.165, allocations: 35.94 kB / 357.6 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.1651, allocations: 36 kB / 357.6 MB, free: 5.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.1653, allocations: 99.58 kB / 357.7 MB, free: 4.906 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.1655, allocations: 129.4 kB / 357.8 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006059/0.1661, allocations: 0.6232 MB / 358.5 MB, free: 4.148 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.1661, allocations: 8 kB / 358.5 MB, free: 4.141 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1661, allocations: 0 / 358.5 MB, free: 4.141 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.629e-05/0.1661, allocations: 0 / 358.5 MB, free: 4.141 MB / 286.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.00273/0.1689, allocations: 1.007 MB / 359.5 MB, free: 3.074 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.1689, allocations: 8.031 kB / 359.5 MB, free: 3.066 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000203/0.1691, allocations: 70.53 kB / 359.5 MB, free: 2.988 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.1694, allocations: 55.34 kB / 359.6 MB, free: 2.934 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007453/0.1701, allocations: 393 kB / 360 MB, free: 2.512 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.076e-05/0.1702, allocations: 33 kB / 360 MB, free: 2.477 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.434e-05/0.1703, allocations: 39.98 kB / 360.1 MB, free: 2.438 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/0.172, allocations: 0.6341 MB / 360.7 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.172, allocations: 0 / 360.7 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.491e-05/0.1721, allocations: 19.95 kB / 360.7 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.1721, allocations: 8 kB / 360.7 MB, free: 1.754 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.1742, allocations: 0.7065 MB / 361.4 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00438/0.1786, allocations: 2.215 MB / 363.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003784/0.1824, allocations: 0.9891 MB / 364.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.1835, allocations: 447 kB / 365.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.135e-05/0.1835, allocations: 8.312 kB / 365.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001235/0.1848, allocations: 462.7 kB / 365.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.956e-06/0.1848, allocations: 0 / 365.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01361/0.1984, allocations: 2.638 MB / 368.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.1985, allocations: 81.11 kB / 368.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005636/0.1991, allocations: 406 kB / 368.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.902e-05/0.1992, allocations: 41.62 kB / 368.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.1994, allocations: 228.6 kB / 368.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.1995, allocations: 134.1 kB / 369 MB, free: 9.238 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/0.1996, allocations: 4 kB / 369 MB, free: 9.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1997, allocations: 358.8 kB / 369.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009199/0.2006, allocations: 332.6 kB / 369.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009017/0.2016, allocations: 378 kB / 370.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008983/0.2025, allocations: 351.6 kB / 370.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2025, allocations: 3.938 kB / 370.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002498/0.205, allocations: 0.9678 MB / 371.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.205, allocations: 31.73 kB / 371.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2051, allocations: 3.984 kB / 371.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.2062, allocations: 430.4 kB / 371.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004731/0.2067, allocations: 107.9 kB / 372 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007627/0.2144, allocations: 3.491 MB / 375.4 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007265/0.2151, allocations: 111.7 kB / 375.6 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.287e-05/0.2152, allocations: 19.98 kB / 375.6 MB, free: 2.52 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.0003044/0.2155, allocations: 165.8 kB / 375.7 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2156, allocations: 43.53 kB / 375.8 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.2158, allocations: 64.41 kB / 375.8 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.2158, allocations: 4 kB / 375.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2158, allocations: 0 / 375.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2158, allocations: 0 / 375.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007834/0.2166, allocations: 0.6028 MB / 376.5 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.2166, allocations: 0 / 376.5 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/0.2171, allocations: 111.8 kB / 376.6 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/0.2182, allocations: 420.6 kB / 377 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/0.2183, allocations: 15.94 kB / 377 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00754/0.2258, allocations: 3.485 MB / 380.5 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.2259, allocations: 0 / 380.5 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005657/0.2315, allocations: 1.644 MB / 382.1 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/0.2319, allocations: 188.5 kB / 382.3 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.232, allocations: 4 kB / 382.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005987/0.2326, allocations: 91.91 kB / 382.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.2328, allocations: 59.81 kB / 382.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.201e-05/0.2328, allocations: 12 kB / 382.5 MB, free: 11.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003655/0.2332, allocations: 295.1 kB / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2332, allocations: 4 kB / 382.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007345/0.234, allocations: 175.7 kB / 382.9 MB, free: 10.93 MB / 318.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.005908/0.2399, allocations: 2.202 MB / 385.1 MB, free: 8.695 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002759/0.2427, allocations: 1.009 MB / 386.1 MB, free: 7.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.2427, allocations: 0 / 386.1 MB, free: 7.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.2443, allocations: 0.5923 MB / 386.7 MB, free: 7.055 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007111/0.2451, allocations: 84.55 kB / 386.8 MB, free: 6.977 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.2563, allocations: 4.182 MB / 391 MB, free: 2.738 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004891/0.2568, allocations: 0.8359 MB / 391.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002879/0.2571, allocations: 47.38 kB / 391.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002764/0.2574, allocations: 163.3 kB / 392 MB, free: 1.668 MB / 318.1 MB Notification: Performance of SimCode: time 1.313e-06/0.2574, allocations: 0 / 392 MB, free: 1.668 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03739/0.2948, allocations: 16.49 MB / 408.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/0.2951, allocations: 230.1 kB / 408.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.407/2.702, allocations: 0 / 408.8 MB, free: 1.184 MB / 334.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)