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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009862/0.0009865, allocations: 182.1 kB / 18.04 MB, free: 3.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.4 MB / 224.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000834/0.000834, allocations: 89.47 kB / 272.5 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003813, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2418, allocations: 47.58 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09446/0.3363, allocations: 80.49 MB / 457.5 MB, free: 56 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.3366, allocations: 79.95 kB / 457.6 MB, free: 15.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02602/0.3627, allocations: 8.557 MB / 466.2 MB, free: 7.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3628, allocations: 4 kB / 466.2 MB, free: 7.367 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.481e-05/0.3628, allocations: 12 kB / 466.2 MB, free: 7.355 MB / 346.7 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.002487/0.3653, allocations: 0.899 MB / 467.1 MB, free: 6.402 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3654, allocations: 8.031 kB / 467.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.3655, allocations: 60.19 kB / 467.1 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006064/0.3662, allocations: 398.4 kB / 467.5 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.223e-05/0.3662, allocations: 33.38 kB / 467.6 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-05/0.3663, allocations: 36.38 kB / 467.6 MB, free: 5.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.3677, allocations: 0.5948 MB / 468.2 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.3677, allocations: 7.922 kB / 468.2 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.877e-05/0.3678, allocations: 15.98 kB / 468.2 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.3678, allocations: 12 kB / 468.2 MB, free: 5.188 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.3695, allocations: 0.6441 MB / 468.9 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003718/0.3733, allocations: 2.049 MB / 470.9 MB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/0.3773, allocations: 0.9669 MB / 471.9 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009463/0.3783, allocations: 404.8 kB / 472.3 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.959e-05/0.3784, allocations: 7.938 kB / 472.3 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001071/0.3794, allocations: 443.6 kB / 472.7 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 2.896e-06/0.3795, allocations: 0 / 472.7 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.008771/0.3882, allocations: 1.978 MB / 474.7 MB, free: 14.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.3884, allocations: 85.11 kB / 474.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005985/0.389, allocations: 381.7 kB / 475.2 MB, free: 14.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.886e-05/0.389, allocations: 33.7 kB / 475.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3892, allocations: 228.5 kB / 475.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.3894, allocations: 126.1 kB / 475.5 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.3894, allocations: 12 kB / 475.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3896, allocations: 350.8 kB / 475.9 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000841/0.3904, allocations: 304.6 kB / 476.2 MB, free: 13.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008355/0.3913, allocations: 349.9 kB / 476.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.3929, allocations: 0.6149 MB / 477.1 MB, free: 12.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.3929, allocations: 0 / 477.1 MB, free: 12.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002418/0.3953, allocations: 0.9164 MB / 478.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.493e-05/0.3954, allocations: 37.69 kB / 478.1 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3954, allocations: 0 / 478.1 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.3966, allocations: 424.5 kB / 478.5 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/0.3972, allocations: 91.94 kB / 478.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008725/0.4059, allocations: 3.486 MB / 482.1 MB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008146/0.4067, allocations: 111.7 kB / 482.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.781e-05/0.4069, allocations: 11.98 kB / 482.2 MB, free: 6.824 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.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * 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 (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.0003861/0.4072, allocations: 169.8 kB / 482.4 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.4074, allocations: 43.56 kB / 482.4 MB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.4075, allocations: 56.36 kB / 482.5 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4076, allocations: 4 kB / 482.5 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4076, allocations: 8 kB / 482.5 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.4076, allocations: 3.984 kB / 482.5 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008418/0.4084, allocations: 0.5872 MB / 483.1 MB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.4085, allocations: 3.938 kB / 483.1 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004981/0.409, allocations: 83.94 kB / 483.2 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.4101, allocations: 420.5 kB / 483.6 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.4102, allocations: 7.984 kB / 483.6 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008129/0.4183, allocations: 3.482 MB / 487.1 MB, free: 1.773 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.4183, allocations: 3.938 kB / 487.1 MB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003219/0.4216, allocations: 1.275 MB / 488.3 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002695/0.4218, allocations: 180.5 kB / 488.5 MB, free: 284 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.825e-05/0.4219, allocations: 8 kB / 488.5 MB, free: 276 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005943/0.4225, allocations: 87.92 kB / 488.6 MB, free: 188 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.4227, allocations: 47.86 kB / 488.7 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/0.4228, allocations: 15.98 kB / 488.7 MB, free: 124 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003506/0.4231, allocations: 267.2 kB / 488.9 MB, free: 15.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4231, allocations: 0 / 488.9 MB, free: 15.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007021/0.4238, allocations: 175.7 kB / 489.1 MB, free: 15.69 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,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 (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.0002032/0.424, allocations: 126.2 kB / 489.2 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002524/0.4266, allocations: 0.9421 MB / 490.2 MB, free: 14.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.4266, allocations: 4 kB / 490.2 MB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001402/0.428, allocations: 0.5801 MB / 490.7 MB, free: 14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005327/0.4286, allocations: 75.23 kB / 490.8 MB, free: 13.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003268/0.4318, allocations: 1.38 MB / 492.2 MB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.4322, allocations: 0.828 MB / 493 MB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002736/0.4325, allocations: 43.27 kB / 493.1 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.998e-05/0.4326, allocations: 31.42 kB / 493.1 MB, free: 11.6 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4326, allocations: 0 / 493.1 MB, free: 11.6 MB / 378.7 MB Notification: Performance of Templates: time 0.01937/0.452, allocations: 10.82 MB / 0.4921 GB, free: 0.793 MB / 378.7 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