Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001516/0.00152, allocations: 182.1 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.171/2.171, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.406e-05/4.446e-05, allocations: 15.92 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 47.57 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.5195, allocations: 80.33 MB / 449.5 MB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.5199, allocations: 66.97 kB / 449.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06169/0.5816, allocations: 8.571 MB / 458.2 MB, free: 5.547 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.5816, allocations: 0 / 458.2 MB, free: 5.547 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.919e-05/0.5817, allocations: 8 kB / 458.2 MB, free: 5.539 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00523/0.587, allocations: 0.8415 MB / 459 MB, free: 4.676 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.47e-05/0.5871, allocations: 8.406 kB / 459 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003182/0.5874, allocations: 72.53 kB / 459.1 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000324/0.5878, allocations: 59.28 kB / 459.1 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.589, allocations: 381.2 kB / 459.5 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.591e-05/0.5891, allocations: 31.59 kB / 459.5 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/0.5894, allocations: 38.98 kB / 459.6 MB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.5914, allocations: 455.9 kB / 460 MB, free: 3.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.832e-05/0.5915, allocations: 7.938 kB / 460 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.5916, allocations: 9.188 kB / 460 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.5917, allocations: 12 kB / 460.1 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.5936, allocations: 385.7 kB / 460.4 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009943/0.6036, allocations: 2.051 MB / 462.5 MB, free: 1.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009171/0.6128, allocations: 0.7178 MB / 463.2 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.6142, allocations: 261.2 kB / 463.5 MB, free: 0.582 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.972e-05/0.6144, allocations: 11.98 kB / 463.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001302/0.6157, allocations: 292.6 kB / 463.8 MB, free: 276 kB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 6.041e-06/0.6158, allocations: 0 / 463.8 MB, free: 276 kB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.003595/0.6194, allocations: 0.5569 MB / 464.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.968e-05/0.6195, allocations: 81.11 kB / 464.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.6207, allocations: 338.8 kB / 464.7 MB, free: 15.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002526/0.6209, allocations: 33.7 kB / 464.8 MB, free: 15.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003623/0.6213, allocations: 259.1 kB / 465 MB, free: 14.97 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003356/0.6217, allocations: 134.1 kB / 465.1 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.313e-05/0.6218, allocations: 8 kB / 465.1 MB, free: 14.83 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002256/0.6221, allocations: 322.8 kB / 465.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009547/0.623, allocations: 172.8 kB / 465.6 MB, free: 14.33 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009992/0.6241, allocations: 202.1 kB / 465.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009469/0.6251, allocations: 187.5 kB / 466 MB, free: 13.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.6251, allocations: 0 / 466 MB, free: 13.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003261/0.6284, allocations: 0.5703 MB / 466.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.6285, allocations: 41.69 kB / 466.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.6286, allocations: 3.984 kB / 466.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002548/0.6311, allocations: 341.4 kB / 467 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.6326, allocations: 95.88 kB / 467.1 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01999/0.6527, allocations: 3.082 MB / 470.1 MB, free: 9.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002066/0.6548, allocations: 111.6 kB / 470.2 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/0.655, allocations: 19.98 kB / 470.3 MB, free: 9.531 MB / 346.7 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.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete 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.000341/0.6554, allocations: 121.9 kB / 470.4 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/0.6556, allocations: 51.44 kB / 470.4 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002953/0.6559, allocations: 48.5 kB / 470.5 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.656, allocations: 4 kB / 470.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.656, allocations: 0 / 470.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/0.656, allocations: 11.94 kB / 470.5 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001812/0.6579, allocations: 0.5795 MB / 471.1 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.6579, allocations: 0 / 471.1 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/0.6594, allocations: 87.94 kB / 471.2 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002401/0.6618, allocations: 332.7 kB / 471.5 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001801/0.6621, allocations: 11.98 kB / 471.5 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0195/0.6816, allocations: 3.077 MB / 474.6 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.6817, allocations: 0 / 474.6 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004825/0.6865, allocations: 0.8333 MB / 475.4 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006735/0.6873, allocations: 168.6 kB / 475.6 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/0.6875, allocations: 15.94 kB / 475.6 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/0.6893, allocations: 87.92 kB / 475.7 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003657/0.6897, allocations: 51.92 kB / 475.7 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.82e-05/0.6899, allocations: 8 kB / 475.7 MB, free: 3.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000792/0.6907, allocations: 269.2 kB / 476 MB, free: 3.562 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.849e-06/0.6907, allocations: 0 / 476 MB, free: 3.562 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001566/0.6923, allocations: 179.6 kB / 476.2 MB, free: 3.387 MB / 346.7 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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.005503/0.6978, allocations: 1.397 MB / 477.6 MB, free: 1.953 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003796/0.7017, allocations: 0.6586 MB / 478.2 MB, free: 1.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/0.7018, allocations: 0 / 478.2 MB, free: 1.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002669/0.7045, allocations: 438.2 kB / 478.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.7057, allocations: 78.23 kB / 478.7 MB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007417/0.7131, allocations: 0.9848 MB / 479.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007847/0.714, allocations: 0.8397 MB / 480.6 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007059/0.7147, allocations: 151.4 kB / 480.7 MB, free: 14.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.874e-06/0.7148, allocations: 3.938 kB / 480.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.156/3.871, allocations: 10.51 MB / 491.2 MB, free: 4.188 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)