Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_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.001194/0.001194, allocations: 113.4 kB / 17.73 MB, free: 5.309 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.001081/0.001081, allocations: 188.2 kB / 18.66 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.813/1.813, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001679, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.139, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00611/0.1452, allocations: 3.879 MB / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.1478, allocations: 1.037 MB / 379.6 MB, free: 120 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006774/0.1485, allocations: 4 kB / 379.6 MB, free: 116 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004239/0.149, allocations: 83.2 kB / 379.7 MB, free: 32 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3197/0.4687, allocations: 161.9 kB / 379.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009245/0.4697, allocations: 209 kB / 380 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.4709, allocations: 0.7611 MB / 380.8 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004251/0.4713, allocations: 180 kB / 381 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005447/0.4719, allocations: 294.4 kB / 381.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005164/0.4724, allocations: 338.4 kB / 381.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.4726, allocations: 76.44 kB / 381.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.4727, allocations: 77.03 kB / 381.7 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001863/0.4729, allocations: 148.9 kB / 381.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004015/0.4733, allocations: 311.1 kB / 382.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.4747, allocations: 0.8021 MB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4747, allocations: 0.5 kB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4747, allocations: 2.219 kB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.4747, allocations: 1.094 kB / 383 MB, free: 8.906 MB / 318.1 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.002902/0.4776, allocations: 0.9773 MB / 384 MB, free: 8.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.434e-05/0.4777, allocations: 9.812 kB / 384 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.4778, allocations: 74.95 kB / 384 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.478, allocations: 56.72 kB / 384.1 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007801/0.4788, allocations: 410.6 kB / 384.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.805e-05/0.4788, allocations: 29.06 kB / 384.5 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.4789, allocations: 32.88 kB / 384.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.4805, allocations: 0.5659 MB / 385.1 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.4805, allocations: 2.969 kB / 385.1 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.762e-05/0.4806, allocations: 19.16 kB / 385.1 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.4806, allocations: 8.094 kB / 385.1 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001774/0.4824, allocations: 0.5703 MB / 385.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003709/0.4861, allocations: 2.002 MB / 387.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003981/0.4901, allocations: 0.7919 MB / 388.5 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.4911, allocations: 363.3 kB / 388.9 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.697e-05/0.4912, allocations: 7.312 kB / 388.9 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001148/0.4924, allocations: 405.9 kB / 389.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 3.466e-06/0.4924, allocations: 0 / 389.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.01066/0.5031, allocations: 1.785 MB / 391.1 MB, free: 5.262 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/0.5032, allocations: 82.06 kB / 391.1 MB, free: 5.168 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007587/0.5039, allocations: 390.7 kB / 391.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.2e-05/0.504, allocations: 41.3 kB / 391.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/0.5043, allocations: 220 kB / 391.8 MB, free: 4.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.5044, allocations: 131.5 kB / 391.9 MB, free: 4.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.5046, allocations: 75.45 kB / 392 MB, free: 4.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.5048, allocations: 349.4 kB / 392.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008616/0.5056, allocations: 275.7 kB / 392.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008456/0.5065, allocations: 316.7 kB / 392.9 MB, free: 4.062 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.5081, allocations: 0.5365 MB / 393.4 MB, free: 3.852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.5081, allocations: 1.25 kB / 393.4 MB, free: 3.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005095/0.5132, allocations: 1.051 MB / 394.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.239e-05/0.5133, allocations: 33.67 kB / 394.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.5133, allocations: 4 kB / 394.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/0.5146, allocations: 393.1 kB / 394.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.5151, allocations: 87.81 kB / 395 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008594/0.5237, allocations: 3.677 MB / 398.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008628/0.5246, allocations: 85.09 kB / 398.7 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.209e-05/0.5247, allocations: 9.422 kB / 398.8 MB, free: 0.9258 MB / 318.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.0003326/0.525, allocations: 181.7 kB / 398.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.67e-05/0.5251, allocations: 47.48 kB / 399 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.5253, allocations: 51.31 kB / 399 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.5253, allocations: 4.125 kB / 399 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.5253, allocations: 0 / 399 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.5253, allocations: 4.031 kB / 399 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000842/0.5261, allocations: 0.5846 MB / 399.6 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.5262, allocations: 0 / 399.6 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000453/0.5266, allocations: 87.42 kB / 399.7 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/0.5278, allocations: 399.1 kB / 400.1 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.626e-05/0.5278, allocations: 11.33 kB / 400.1 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009487/0.5373, allocations: 3.658 MB / 403.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5374, allocations: 0 / 403.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005088/0.5425, allocations: 1.258 MB / 405 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004243/0.5429, allocations: 171.5 kB / 405.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.496e-05/0.543, allocations: 14.81 kB / 405.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000561/0.5436, allocations: 64.39 kB / 405.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/0.5439, allocations: 46.66 kB / 405.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.042e-05/0.5439, allocations: 9.062 kB / 405.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005015/0.5444, allocations: 276.3 kB / 405.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5444, allocations: 4 kB / 405.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009914/0.5454, allocations: 166.8 kB / 405.8 MB, free: 12.15 MB / 334.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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * 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 (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.005836/0.5513, allocations: 1.814 MB / 407.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003139/0.5545, allocations: 0.8757 MB / 408.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.5545, allocations: 4.062 kB / 408.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00178/0.5563, allocations: 0.5265 MB / 409 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008978/0.5572, allocations: 92.16 kB / 409.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/0.572, allocations: 5.445 MB / 414.5 MB, free: 6.078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004589/0.5725, allocations: 0.8316 MB / 415.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002575/0.5728, allocations: 43.27 kB / 415.4 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002418/0.5731, allocations: 151.4 kB / 415.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of SimCode: time 1.563e-06/0.5731, allocations: 0 / 415.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05194/0.625, allocations: 17.95 MB / 433.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.42, allocations: 19.98 kB / 433.5 MB, free: 3 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)