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/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.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/ModelicaServices trunk/package.mo): time 0.002013/0.002013, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003216/0.003216, allocations: 200.7 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.601/1.601, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 59.89 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3665, allocations: 50.55 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005702/0.3722, allocations: 4.096 MB / 413.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.3747, allocations: 1.059 MB / 414.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003177/0.3751, allocations: 11.94 kB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002805/0.3754, allocations: 91.12 kB / 414.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000386/0.3758, allocations: 186.4 kB / 414.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006821/0.3765, allocations: 231.6 kB / 414.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000861/0.3774, allocations: 0.8095 MB / 415.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004739/0.3778, allocations: 176.9 kB / 415.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006117/0.3785, allocations: 315 kB / 416.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004618/0.3789, allocations: 374.5 kB / 416.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.3791, allocations: 80 kB / 416.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.3792, allocations: 88 kB / 416.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.3794, allocations: 167.4 kB / 416.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003174/0.3797, allocations: 330.5 kB / 417.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008748/0.3806, allocations: 0.8578 MB / 418.1 MB, free: 8.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.3806, allocations: 4 kB / 418.1 MB, free: 8.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3806, allocations: 0 / 418.1 MB, free: 8.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.3807, allocations: 0 / 418.1 MB, free: 8.691 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002783/0.3834, allocations: 1.038 MB / 419.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.3835, allocations: 11.97 kB / 419.1 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002773/0.3838, allocations: 68.27 kB / 419.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000763/0.3846, allocations: 425.8 kB / 419.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.562e-05/0.3847, allocations: 29.38 kB / 419.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.3848, allocations: 40.38 kB / 419.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.3863, allocations: 0.6071 MB / 420.3 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3863, allocations: 0 / 420.3 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.265e-05/0.3864, allocations: 12 kB / 420.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.3864, allocations: 12 kB / 420.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.3882, allocations: 0.6479 MB / 421 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003716/0.3919, allocations: 2.153 MB / 423.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003715/0.3957, allocations: 0.8589 MB / 424 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.3967, allocations: 400.8 kB / 424.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.304e-05/0.3968, allocations: 12.31 kB / 424.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/0.3979, allocations: 430.6 kB / 424.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.194e-06/0.3979, allocations: 0 / 424.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01407/0.412, allocations: 2.39 MB / 427.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.077e-05/0.4122, allocations: 81.11 kB / 427.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006441/0.4128, allocations: 429.8 kB / 427.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.727e-05/0.4129, allocations: 33.7 kB / 427.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.4131, allocations: 236.7 kB / 428 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.4133, allocations: 138 kB / 428.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.4135, allocations: 70.06 kB / 428.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4137, allocations: 358.7 kB / 428.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009025/0.4146, allocations: 300.6 kB / 428.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008772/0.4155, allocations: 334.1 kB / 429.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.4171, allocations: 0.5991 MB / 429.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.4172, allocations: 0 / 429.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003536/0.4207, allocations: 1.002 MB / 430.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.822e-05/0.4208, allocations: 37.69 kB / 430.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.4208, allocations: 0 / 430.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.4222, allocations: 432.5 kB / 431.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005083/0.4227, allocations: 83.86 kB / 431.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008792/0.4315, allocations: 3.809 MB / 435.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009555/0.4326, allocations: 87.7 kB / 435.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.03e-05/0.4326, allocations: 15.98 kB / 435.2 MB, free: 7.082 MB / 350.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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.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.000376/0.433, allocations: 189.6 kB / 435.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.979e-05/0.4331, allocations: 47.44 kB / 435.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.4333, allocations: 56.53 kB / 435.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.4333, allocations: 4 kB / 435.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4333, allocations: 96 / 435.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.4333, allocations: 7.969 kB / 435.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000878/0.4342, allocations: 0.6182 MB / 436.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.4342, allocations: 4 kB / 436.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000512/0.4347, allocations: 79.86 kB / 436.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.436, allocations: 432.5 kB / 436.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.039e-05/0.4361, allocations: 7.984 kB / 436.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008662/0.4447, allocations: 3.801 MB / 440.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4448, allocations: 3.938 kB / 440.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005978/0.4508, allocations: 1.505 MB / 441.9 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000447/0.4513, allocations: 176.5 kB / 442.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.293e-05/0.4514, allocations: 19.92 kB / 442.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.4519, allocations: 71.91 kB / 442.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.4522, allocations: 55.88 kB / 442.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.506e-05/0.4522, allocations: 12 kB / 442.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004133/0.4526, allocations: 299.1 kB / 442.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4527, allocations: 0 / 442.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007481/0.4534, allocations: 171.8 kB / 442.7 MB, free: 15.31 MB / 366.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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * 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 (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.000199/0.4536, allocations: 105.7 kB / 442.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002794/0.4564, allocations: 0.9737 MB / 443.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.4564, allocations: 4.062 kB / 443.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.4581, allocations: 0.5918 MB / 444.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005908/0.4587, allocations: 97.06 kB / 444.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.4622, allocations: 1.246 MB / 445.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.4628, allocations: 0.8472 MB / 446.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002883/0.4631, allocations: 39.41 kB / 446.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.4633, allocations: 35.44 kB / 446.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.426e-06/0.4633, allocations: 0 / 446.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Templates: time 0.02513/0.4884, allocations: 14.06 MB / 460.7 MB, free: 13.29 MB / 382.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches