Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001199, allocations: 99.73 kB / 16.3 MB, free: 5.988 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.001039/0.001039, allocations: 178.8 kB / 17.19 MB, free: 5.906 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.787/1.787, allocations: 205.4 MB / 223.4 MB, free: 5.555 MB / 174.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.0004666/0.000467, allocations: 8 kB / 280.1 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2766, allocations: 47.58 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00322/0.2798, allocations: 2.32 MB / 330 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.2816, allocations: 0.7492 MB / 330.8 MB, free: 15 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000335/0.2819, allocations: 5.219 kB / 330.8 MB, free: 15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.932e-05/0.282, allocations: 38.47 kB / 330.8 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000337/0.2824, allocations: 118.5 kB / 330.9 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000369/0.2828, allocations: 69.47 kB / 331 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.2832, allocations: 267 kB / 331.3 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.2834, allocations: 94.59 kB / 331.3 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.2836, allocations: 119.1 kB / 331.5 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.2839, allocations: 131.9 kB / 331.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.955e-05/0.2839, allocations: 14.97 kB / 331.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.215e-05/0.284, allocations: 16.22 kB / 331.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.316e-05/0.284, allocations: 51.16 kB / 331.7 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.521e-05/0.2841, allocations: 91.23 kB / 331.8 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.2844, allocations: 313.7 kB / 332.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2844, allocations: 0 / 332.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2845, allocations: 0 / 332.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.2845, allocations: 1.219 kB / 332.1 MB, free: 14.1 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001012/0.2855, allocations: 0.5789 MB / 332.6 MB, free: 13.58 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.2855, allocations: 8.719 kB / 332.7 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.297e-05/0.2856, allocations: 33.97 kB / 332.7 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003535/0.286, allocations: 276.6 kB / 333 MB, free: 13.28 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.286, allocations: 22.33 kB / 333 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.2861, allocations: 28.27 kB / 333 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006144/0.2867, allocations: 282.2 kB / 333.3 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2867, allocations: 4.875 kB / 333.3 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.394e-05/0.2868, allocations: 10.72 kB / 333.3 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.2868, allocations: 6.469 kB / 333.3 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.2872, allocations: 208.5 kB / 333.5 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.2891, allocations: 1.169 MB / 334.7 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/0.2897, allocations: 229 kB / 334.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.2897, allocations: 2.312 kB / 334.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003553/0.2901, allocations: 166.1 kB / 335.1 MB, free: 11.69 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 1.854e-06/0.2901, allocations: 0 / 335.1 MB, free: 11.69 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001498/0.2916, allocations: 0.5119 MB / 335.6 MB, free: 11.36 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.2917, allocations: 113.9 kB / 335.7 MB, free: 11.23 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.2921, allocations: 240.4 kB / 335.9 MB, free: 11 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.258e-05/0.2921, allocations: 33.7 kB / 336 MB, free: 10.96 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.2923, allocations: 168.4 kB / 336.1 MB, free: 10.79 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.575e-05/0.2924, allocations: 67.02 kB / 336.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.2924, allocations: 8 kB / 336.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002638/0.2927, allocations: 334.8 kB / 336.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.2928, allocations: 75.97 kB / 336.6 MB, free: 10.3 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003057/0.2931, allocations: 116.5 kB / 336.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.2933, allocations: 89.89 kB / 336.8 MB, free: 10.09 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.2933, allocations: 0 / 336.8 MB, free: 10.09 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004947/0.2938, allocations: 296 kB / 337.1 MB, free: 9.793 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.2939, allocations: 4 kB / 337.1 MB, free: 9.789 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.2939, allocations: 4 kB / 337.1 MB, free: 9.785 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.2942, allocations: 88.81 kB / 337.2 MB, free: 9.695 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.2944, allocations: 35.91 kB / 337.2 MB, free: 9.66 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002435/0.2969, allocations: 1.956 MB / 339.2 MB, free: 7.57 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002505/0.2971, allocations: 39.86 kB / 339.2 MB, free: 7.531 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.2972, allocations: 8 kB / 339.2 MB, free: 7.523 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.000197/0.2974, allocations: 145.8 kB / 339.4 MB, free: 7.371 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.436e-05/0.2974, allocations: 31.67 kB / 339.4 MB, free: 7.34 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.275e-05/0.2975, allocations: 30.17 kB / 339.4 MB, free: 7.309 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2975, allocations: 0 / 339.4 MB, free: 7.309 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2975, allocations: 4 kB / 339.4 MB, free: 7.305 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.2975, allocations: 0 / 339.4 MB, free: 7.305 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.298, allocations: 353.3 kB / 339.8 MB, free: 6.91 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.298, allocations: 8.094 kB / 339.8 MB, free: 6.902 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.2981, allocations: 23.92 kB / 339.8 MB, free: 6.879 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002443/0.2984, allocations: 88.75 kB / 339.9 MB, free: 6.789 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.2984, allocations: 8 kB / 339.9 MB, free: 6.781 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0023/0.3007, allocations: 1.964 MB / 341.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3007, allocations: 0 / 341.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007766/0.3015, allocations: 418.2 kB / 342.3 MB, free: 4.258 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.3017, allocations: 129.2 kB / 342.4 MB, free: 4.113 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.558e-05/0.3017, allocations: 12 kB / 342.4 MB, free: 4.102 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.3019, allocations: 23.94 kB / 342.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.302, allocations: 27.95 kB / 342.5 MB, free: 4.051 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.3021, allocations: 11.92 kB / 342.5 MB, free: 4.039 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.3023, allocations: 176.5 kB / 342.6 MB, free: 3.867 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3023, allocations: 4 kB / 342.6 MB, free: 3.863 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005074/0.3028, allocations: 91.84 kB / 342.7 MB, free: 3.773 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001864/0.303, allocations: 103.2 kB / 342.8 MB, free: 3.66 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007521/0.3037, allocations: 358.4 kB / 343.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3038, allocations: 4.125 kB / 343.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005169/0.3043, allocations: 262.5 kB / 343.4 MB, free: 3.023 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.3047, allocations: 56.39 kB / 343.5 MB, free: 2.969 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.3061, allocations: 0.7153 MB / 344.2 MB, free: 2.23 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.3066, allocations: 0.7752 MB / 345 MB, free: 1.43 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.3067, allocations: 22.28 kB / 345 MB, free: 1.41 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.699e-05/0.3068, allocations: 19.44 kB / 345 MB, free: 1.391 MB / 270.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3068, allocations: 4 kB / 345 MB, free: 1.387 MB / 270.1 MB Notification: Performance of Templates: time 0.0104/0.3172, allocations: 4.298 MB / 349.3 MB, free: 13.09 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) Environment - environmentSimulation: