Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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: 114.3 kB / 17.07 MB, free: 6 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.001718/0.001718, allocations: 190.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.653/1.653, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001732, allocations: 55.91 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.486/0.4878, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005884/0.4937, allocations: 4.063 MB / 404.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00214/0.4959, allocations: 1.005 MB / 405.8 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002184/0.4961, allocations: 11.94 kB / 405.8 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.4964, allocations: 87.14 kB / 405.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003414/0.4967, allocations: 186.5 kB / 406.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005433/0.4973, allocations: 215.6 kB / 406.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008455/0.4982, allocations: 0.8212 MB / 407.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.4985, allocations: 164.9 kB / 407.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004277/0.4989, allocations: 307 kB / 407.6 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000414/0.4993, allocations: 358.6 kB / 407.9 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.4995, allocations: 80 kB / 408 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.4996, allocations: 84 kB / 408.1 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.4998, allocations: 163.4 kB / 408.2 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.5001, allocations: 330.5 kB / 408.6 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009775/0.5011, allocations: 0.8461 MB / 409.4 MB, free: 156 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.5011, allocations: 4 kB / 409.4 MB, free: 152 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5011, allocations: 4 kB / 409.4 MB, free: 148 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.5012, allocations: 0 / 409.4 MB, free: 148 kB / 318.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.00282/0.504, allocations: 1.015 MB / 410.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.504, allocations: 12.03 kB / 410.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.5042, allocations: 60.19 kB / 410.5 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006867/0.5049, allocations: 418 kB / 410.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/0.5049, allocations: 25.38 kB / 410.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.707e-05/0.505, allocations: 40.38 kB / 411 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.5066, allocations: 0.5953 MB / 411.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.5066, allocations: 4 kB / 411.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-05/0.5066, allocations: 16 kB / 411.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.5067, allocations: 11.98 kB / 411.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.5086, allocations: 0.6167 MB / 412.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003868/0.5125, allocations: 2.161 MB / 414.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003811/0.5163, allocations: 0.8315 MB / 415.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.5174, allocations: 393.3 kB / 415.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/0.5175, allocations: 8.328 kB / 415.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001317/0.5188, allocations: 422.6 kB / 416 MB, free: 9.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.555e-06/0.5188, allocations: 0 / 416 MB, free: 9.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01441/0.5332, allocations: 2.289 MB / 418.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.5333, allocations: 85.09 kB / 418.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005765/0.5339, allocations: 406 kB / 418.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.866e-05/0.534, allocations: 37.7 kB / 418.8 MB, free: 6.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.5342, allocations: 232.6 kB / 419 MB, free: 6.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.5344, allocations: 130.1 kB / 419.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.5345, allocations: 69.97 kB / 419.2 MB, free: 5.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002644/0.5348, allocations: 370.7 kB / 419.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009409/0.5358, allocations: 284.6 kB / 419.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009864/0.5368, allocations: 338 kB / 420.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001868/0.5386, allocations: 0.5796 MB / 420.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.5386, allocations: 0 / 420.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00372/0.5424, allocations: 0.9821 MB / 421.8 MB, free: 3.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/0.5424, allocations: 29.7 kB / 421.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.5425, allocations: 4 kB / 421.8 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.5438, allocations: 400.5 kB / 422.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004985/0.5443, allocations: 91.8 kB / 422.3 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008488/0.5528, allocations: 3.66 MB / 425.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008498/0.5536, allocations: 91.64 kB / 426 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.406e-05/0.5537, allocations: 15.98 kB / 426.1 MB, free: 14.97 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.0003006/0.554, allocations: 173.7 kB / 426.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-05/0.5541, allocations: 47.44 kB / 426.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.5542, allocations: 52.47 kB / 426.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.5542, allocations: 4 kB / 426.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5542, allocations: 8 kB / 426.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.5543, allocations: 3.984 kB / 426.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006964/0.555, allocations: 0.6068 MB / 426.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.555, allocations: 0 / 426.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004913/0.5555, allocations: 79.86 kB / 427 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.5566, allocations: 404.5 kB / 427.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.219e-05/0.5567, allocations: 11.98 kB / 427.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008149/0.5648, allocations: 3.662 MB / 431.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5648, allocations: 48 / 431.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0059/0.5707, allocations: 1.462 MB / 432.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003002/0.5711, allocations: 172.5 kB / 432.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.619e-05/0.5712, allocations: 15.94 kB / 432.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005808/0.5718, allocations: 63.92 kB / 432.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.5719, allocations: 51.92 kB / 432.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-05/0.572, allocations: 12 kB / 432.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003551/0.5723, allocations: 295.1 kB / 433.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5724, allocations: 0 / 433.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006478/0.573, allocations: 175.7 kB / 433.3 MB, free: 7.465 MB / 350.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.0001913/0.5732, allocations: 111.2 kB / 433.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.5759, allocations: 0.9193 MB / 434.3 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.5759, allocations: 4.062 kB / 434.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.5774, allocations: 0.5644 MB / 434.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004721/0.5779, allocations: 93.58 kB / 435 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.581, allocations: 1.193 MB / 436.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004937/0.5815, allocations: 0.8355 MB / 437 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.5817, allocations: 51.38 kB / 437.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.5818, allocations: 31.44 kB / 437.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.5818, allocations: 0 / 437.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of Templates: time 0.02315/0.605, allocations: 13.87 MB / 451 MB, free: 5.789 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches