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: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.001792/0.001792, allocations: 193.8 kB / 18.86 MB, free: 4.754 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.474/1.474, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.001143/0.001143, allocations: 55.92 kB / 280.8 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 46.63 MB / 327.4 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005444/0.1069, allocations: 3.929 MB / 331.4 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.109, allocations: 1.01 MB / 332.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002882/0.1093, allocations: 4 kB / 332.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002407/0.1096, allocations: 63.45 kB / 332.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.1099, allocations: 146.8 kB / 332.6 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004951/0.1104, allocations: 183.8 kB / 332.8 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007956/0.1112, allocations: 0.7589 MB / 333.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003102/0.1115, allocations: 165.2 kB / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004497/0.112, allocations: 295 kB / 334 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004215/0.1124, allocations: 330.7 kB / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.1125, allocations: 84 kB / 334.4 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.1127, allocations: 76 kB / 334.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.1128, allocations: 151.5 kB / 334.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003191/0.1131, allocations: 314.6 kB / 334.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006113/0.1138, allocations: 0.6235 MB / 335.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1138, allocations: 3.938 kB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1138, allocations: 0 / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.1138, allocations: 3.938 kB / 335.5 MB, free: 12.64 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002601/0.1164, allocations: 0.9797 MB / 336.5 MB, free: 11.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.1165, allocations: 12.03 kB / 336.5 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.1166, allocations: 56.28 kB / 336.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005302/0.1171, allocations: 402 kB / 337 MB, free: 11.11 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.1172, allocations: 25.38 kB / 337 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-05/0.1173, allocations: 40.12 kB / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.1186, allocations: 0.563 MB / 337.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.1187, allocations: 0 / 337.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.247e-05/0.1187, allocations: 16 kB / 337.6 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.1187, allocations: 8 kB / 337.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.1204, allocations: 0.5699 MB / 338.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003707/0.1241, allocations: 2.016 MB / 340.2 MB, free: 7.754 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003704/0.1279, allocations: 0.7993 MB / 341 MB, free: 6.945 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009714/0.1289, allocations: 357.3 kB / 341.4 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.033e-05/0.1289, allocations: 11.97 kB / 341.4 MB, free: 6.582 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.1301, allocations: 403.4 kB / 341.8 MB, free: 6.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.735e-06/0.1301, allocations: 3.938 kB / 341.8 MB, free: 6.168 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009864/0.14, allocations: 1.794 MB / 343.6 MB, free: 4.344 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.139e-05/0.1401, allocations: 85.11 kB / 343.7 MB, free: 4.242 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005756/0.1407, allocations: 385.7 kB / 344 MB, free: 3.855 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.5e-05/0.1408, allocations: 37.7 kB / 344.1 MB, free: 3.812 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.141, allocations: 220.6 kB / 344.3 MB, free: 3.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.1412, allocations: 130.1 kB / 344.4 MB, free: 3.461 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.1414, allocations: 70.06 kB / 344.5 MB, free: 3.383 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1415, allocations: 354.8 kB / 344.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008271/0.1424, allocations: 268.6 kB / 345.1 MB, free: 2.766 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008359/0.1432, allocations: 313.9 kB / 345.4 MB, free: 2.449 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.1448, allocations: 0.5407 MB / 345.9 MB, free: 1.895 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1448, allocations: 0 / 345.9 MB, free: 1.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004777/0.1496, allocations: 1.056 MB / 347 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.799e-05/0.1497, allocations: 37.7 kB / 347 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1497, allocations: 0 / 347 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.151, allocations: 396.5 kB / 347.4 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004708/0.1515, allocations: 75.94 kB / 347.5 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008863/0.1603, allocations: 3.683 MB / 351.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007949/0.1612, allocations: 79.62 kB / 351.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.1612, allocations: 15.98 kB / 351.3 MB, free: 12.4 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 (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.0003197/0.1616, allocations: 175.1 kB / 351.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.789e-05/0.1616, allocations: 51.38 kB / 351.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.1618, allocations: 48.38 kB / 351.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.1618, allocations: 7.984 kB / 351.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1618, allocations: 4 kB / 351.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.1618, allocations: 0 / 351.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007124/0.1625, allocations: 0.5873 MB / 352.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.1625, allocations: 3.938 kB / 352.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004287/0.163, allocations: 71.94 kB / 352.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.1641, allocations: 398.1 kB / 352.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.906e-05/0.1642, allocations: 11.98 kB / 352.6 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008429/0.1726, allocations: 3.665 MB / 356.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1727, allocations: 0 / 356.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004516/0.1772, allocations: 1.258 MB / 357.5 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.1775, allocations: 172.5 kB / 357.7 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.202e-05/0.1776, allocations: 11.94 kB / 357.7 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/0.1782, allocations: 60.11 kB / 357.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.1783, allocations: 55.92 kB / 357.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.1784, allocations: 11.98 kB / 357.8 MB, free: 5.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003564/0.1787, allocations: 279.2 kB / 358.1 MB, free: 5.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1788, allocations: 0 / 358.1 MB, free: 5.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006982/0.1795, allocations: 163.8 kB / 358.3 MB, free: 5.16 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,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.0002122/0.1797, allocations: 111.2 kB / 358.4 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.1822, allocations: 0.8916 MB / 359.3 MB, free: 4.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1823, allocations: 0 / 359.3 MB, free: 4.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.1837, allocations: 0.5334 MB / 359.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.1842, allocations: 89.34 kB / 359.9 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.1873, allocations: 1.354 MB / 361.2 MB, free: 2.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.1877, allocations: 0.8316 MB / 362.1 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.1878, allocations: 39.42 kB / 362.1 MB, free: 1.211 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1878, allocations: 0 / 362.1 MB, free: 1.211 MB / 302.1 MB Notification: Performance of Templates: time 0.012/0.1998, allocations: 9.334 MB / 371.4 MB, free: 7.867 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches