Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001653/0.001653, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 227.4 MB / 246.9 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.001521, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.378, allocations: 50.54 MB / 409.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005583/0.3836, allocations: 2.935 MB / 412.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.386, allocations: 0.7946 MB / 413 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000413/0.3864, allocations: 4 kB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002712/0.3868, allocations: 55.44 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004633/0.3872, allocations: 103.1 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005006/0.3877, allocations: 119.8 kB / 413.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006905/0.3884, allocations: 402.3 kB / 413.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003148/0.3888, allocations: 139.2 kB / 413.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003593/0.3891, allocations: 155.4 kB / 413.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002371/0.3894, allocations: 163.3 kB / 414.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.3895, allocations: 40 kB / 414.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.735e-05/0.3896, allocations: 40 kB / 414.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.693e-05/0.3896, allocations: 79.69 kB / 414.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.3898, allocations: 179.2 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004984/0.3903, allocations: 435.7 kB / 414.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3903, allocations: 0 / 414.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3903, allocations: 0 / 414.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.3904, allocations: 0 / 414.9 MB, free: 11.97 MB / 334.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.001065/0.3914, allocations: 0.6284 MB / 415.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.3915, allocations: 8.031 kB / 415.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.3917, allocations: 48.48 kB / 415.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004433/0.3922, allocations: 280.7 kB / 415.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.3922, allocations: 20.94 kB / 415.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.125e-05/0.3922, allocations: 32.31 kB / 415.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005381/0.3928, allocations: 296.8 kB / 416.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3928, allocations: 0 / 416.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.3929, allocations: 12 kB / 416.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3929, allocations: 4 kB / 416.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.3933, allocations: 198.2 kB / 416.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001848/0.3951, allocations: 1.144 MB / 417.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005067/0.3956, allocations: 223.7 kB / 417.7 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002973/0.3959, allocations: 140.8 kB / 417.9 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.396, allocations: 8 kB / 417.9 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/0.3963, allocations: 166.3 kB / 418 MB, free: 8.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.793e-06/0.3963, allocations: 0 / 418 MB, free: 8.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001464/0.3978, allocations: 0.5146 MB / 418.6 MB, free: 8.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/0.3979, allocations: 132.5 kB / 418.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.3981, allocations: 252.8 kB / 418.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.3982, allocations: 29.7 kB / 419 MB, free: 7.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.3983, allocations: 168.5 kB / 419.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.65e-05/0.3984, allocations: 74.92 kB / 419.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.927e-05/0.3985, allocations: 53.7 kB / 419.3 MB, free: 7.285 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3986, allocations: 330.8 kB / 419.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.3988, allocations: 71.97 kB / 419.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.399, allocations: 129.1 kB / 419.8 MB, free: 6.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.3993, allocations: 163.3 kB / 419.9 MB, free: 6.566 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3993, allocations: 0 / 419.9 MB, free: 6.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005073/0.3998, allocations: 294.1 kB / 420.2 MB, free: 6.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3999, allocations: 11.98 kB / 420.2 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.3999, allocations: 4 kB / 420.2 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003891/0.4003, allocations: 92.81 kB / 420.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.4004, allocations: 27.92 kB / 420.3 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002425/0.4028, allocations: 2.135 MB / 422.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.4031, allocations: 27.86 kB / 422.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.4031, allocations: 8 kB / 422.5 MB, free: 3.816 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * 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 (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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002138/0.4033, allocations: 149.8 kB / 422.7 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.4034, allocations: 35.75 kB / 422.7 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.049e-05/0.4035, allocations: 30.12 kB / 422.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.4035, allocations: 8.062 kB / 422.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4035, allocations: 0 / 422.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.4035, allocations: 11.92 kB / 422.7 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.4046, allocations: 0.7649 MB / 423.5 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4046, allocations: 0 / 423.5 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.4047, allocations: 19.98 kB / 423.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002934/0.405, allocations: 100.7 kB / 423.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.405, allocations: 8 kB / 423.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002397/0.4074, allocations: 2.135 MB / 425.8 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.4074, allocations: 3.938 kB / 425.8 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006939/0.4081, allocations: 461.1 kB / 426.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.4083, allocations: 124.8 kB / 426.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.4083, allocations: 4 kB / 426.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.4085, allocations: 19.98 kB / 426.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.4086, allocations: 27.95 kB / 426.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.4087, allocations: 16.06 kB / 426.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00021/0.4089, allocations: 172.5 kB / 426.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4089, allocations: 0 / 426.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004929/0.4094, allocations: 91.84 kB / 426.7 MB, free: 15.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.idealThyristor1.off,idealTriac.idealThyristor.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 (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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001827/0.4096, allocations: 111.1 kB / 426.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007298/0.4103, allocations: 362.3 kB / 427.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.4103, allocations: 4 kB / 427.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004105/0.4108, allocations: 266.5 kB / 427.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.4112, allocations: 68.89 kB / 427.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.4126, allocations: 0.585 MB / 428.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.4131, allocations: 0.7639 MB / 428.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.4132, allocations: 26.28 kB / 428.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.259e-05/0.4133, allocations: 19.44 kB / 428.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4133, allocations: 0 / 428.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Templates: time 0.01107/0.4244, allocations: 4.908 MB / 433.8 MB, free: 8.285 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches