Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001541/0.00154, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000983/0.000983, allocations: 92.94 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.643e-05/3.645e-05, allocations: 8 kB / 350.5 MB, free: 2.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 51.48 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2856/0.3996, allocations: 83.76 MB / 485.8 MB, free: 5.699 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.3999, allocations: 74.98 kB / 485.9 MB, free: 5.664 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0248/0.4247, allocations: 9.363 MB / 495.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4247, allocations: 0 / 495.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.07e-05/0.4248, allocations: 16 kB / 495.2 MB, free: 13.71 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002084/0.4269, allocations: 0.877 MB / 496.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.4269, allocations: 13.06 kB / 496.1 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.4272, allocations: 67.34 kB / 496.2 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.4277, allocations: 398.1 kB / 496.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.4277, allocations: 32.95 kB / 496.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.751e-05/0.4278, allocations: 37.38 kB / 496.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008076/0.4286, allocations: 480.8 kB / 497.1 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.4287, allocations: 0 / 497.1 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.248e-05/0.4287, allocations: 16 kB / 497.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.4287, allocations: 11.98 kB / 497.2 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007608/0.4295, allocations: 407 kB / 497.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003565/0.4331, allocations: 2.201 MB / 499.8 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003152/0.4363, allocations: 0.7323 MB / 0.4888 GB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004464/0.4367, allocations: 269.9 kB / 0.489 GB, free: 8.262 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.139e-05/0.4368, allocations: 4.328 kB / 0.489 GB, free: 8.258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005327/0.4373, allocations: 306.9 kB / 0.4893 GB, free: 7.941 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.964e-06/0.4373, allocations: 0 / 0.4893 GB, free: 7.941 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001265/0.4386, allocations: 0.5718 MB / 0.4899 GB, free: 7.359 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.4387, allocations: 81.11 kB / 0.4899 GB, free: 7.262 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004232/0.4391, allocations: 351.2 kB / 0.4903 GB, free: 6.918 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.4392, allocations: 33.7 kB / 0.4903 GB, free: 6.879 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.4393, allocations: 236.6 kB / 0.4905 GB, free: 6.641 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.4395, allocations: 138 kB / 0.4907 GB, free: 6.504 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.4395, allocations: 12 kB / 0.4907 GB, free: 6.492 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4396, allocations: 346.8 kB / 0.491 GB, free: 6.145 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003181/0.44, allocations: 176.8 kB / 0.4912 GB, free: 5.969 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/0.4403, allocations: 214.3 kB / 0.4914 GB, free: 5.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.4406, allocations: 187.7 kB / 0.4916 GB, free: 5.562 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4406, allocations: 0 / 0.4916 GB, free: 5.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001173/0.4418, allocations: 0.6227 MB / 0.4922 GB, free: 4.926 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.4419, allocations: 29.7 kB / 0.4922 GB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.4419, allocations: 0 / 0.4922 GB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009239/0.4428, allocations: 333.9 kB / 0.4925 GB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/0.4434, allocations: 107.9 kB / 0.4926 GB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00692/0.4503, allocations: 3.082 MB / 0.4956 GB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008061/0.4511, allocations: 115.8 kB / 0.4957 GB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/0.4512, allocations: 12 kB / 0.4958 GB, free: 1.117 MB / 362.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.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.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.0001549/0.4513, allocations: 132.9 kB / 0.4959 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.4514, allocations: 47.44 kB / 0.4959 GB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.4516, allocations: 56.59 kB / 0.496 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4516, allocations: 4 kB / 0.496 GB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.4516, allocations: 3.953 kB / 0.496 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.4516, allocations: 3.984 kB / 0.496 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007051/0.4523, allocations: 0.6139 MB / 0.4966 GB, free: 212 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4523, allocations: 0 / 0.4966 GB, free: 212 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004909/0.4528, allocations: 95.92 kB / 0.4967 GB, free: 116 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008037/0.4537, allocations: 334.8 kB / 0.497 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.2e-05/0.4537, allocations: 19.92 kB / 0.497 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006497/0.4602, allocations: 3.066 MB / 0.5 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4602, allocations: 4 kB / 0.5 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.4619, allocations: 0.8633 MB / 0.5009 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.4621, allocations: 188.3 kB / 0.501 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.671e-05/0.4622, allocations: 8 kB / 0.501 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006328/0.4628, allocations: 95.91 kB / 0.5011 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.463, allocations: 51.92 kB / 0.5012 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.463, allocations: 11.98 kB / 0.5012 GB, free: 11.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003059/0.4633, allocations: 289.2 kB / 0.5015 GB, free: 11.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4633, allocations: 0.5625 kB / 0.5015 GB, free: 11.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005652/0.4639, allocations: 179.8 kB / 0.5016 GB, free: 10.86 MB / 378.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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.0001801/0.4641, allocations: 120.9 kB / 0.5018 GB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.4654, allocations: 0.6782 MB / 0.5024 GB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4655, allocations: 0 / 0.5024 GB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008866/0.4664, allocations: 460 kB / 0.5029 GB, free: 9.562 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.4667, allocations: 75 kB / 0.5029 GB, free: 9.496 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.4692, allocations: 0.894 MB / 0.5038 GB, free: 8.586 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.4697, allocations: 0.8475 MB / 0.5046 GB, free: 7.711 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002655/0.47, allocations: 47.38 kB / 0.5047 GB, free: 7.664 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.4701, allocations: 31.38 kB / 0.5047 GB, free: 7.633 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4701, allocations: 0 / 0.5047 GB, free: 7.633 MB / 378.7 MB Notification: Performance of Templates: time 0.01633/0.4864, allocations: 11.23 MB / 0.5157 GB, free: 12.58 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches