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.001077/0.001077, allocations: 107.1 kB / 17.74 MB, free: 5.32 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.001014/0.001014, allocations: 188.2 kB / 18.67 MB, free: 4.398 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.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 47.94 kB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2273, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004671/0.232, allocations: 4.056 MB / 405.5 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.2337, allocations: 1.017 MB / 406.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.2339, allocations: 8 kB / 406.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.2342, allocations: 87.14 kB / 406.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.2345, allocations: 174.5 kB / 406.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004365/0.2349, allocations: 215.6 kB / 407 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007034/0.2356, allocations: 0.8134 MB / 407.8 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002621/0.2359, allocations: 168.9 kB / 407.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003509/0.2363, allocations: 314.9 kB / 408.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003876/0.2367, allocations: 354.7 kB / 408.6 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.2368, allocations: 80 kB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.2369, allocations: 87.94 kB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.237, allocations: 163.4 kB / 408.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002698/0.2373, allocations: 326.6 kB / 409.2 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000692/0.238, allocations: 0.8421 MB / 410.1 MB, free: 152 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.238, allocations: 4 kB / 410.1 MB, free: 148 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.238, allocations: 0 / 410.1 MB, free: 148 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.2381, allocations: 0 / 410.1 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.002515/0.2406, allocations: 1.019 MB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.2406, allocations: 15.97 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.2408, allocations: 60.19 kB / 411.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005504/0.2413, allocations: 414 kB / 411.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.2414, allocations: 25.38 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.823e-05/0.2414, allocations: 40.38 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.2429, allocations: 0.5992 MB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2429, allocations: 0 / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/0.2429, allocations: 16 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.2429, allocations: 12 kB / 412.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001899/0.2449, allocations: 0.6245 MB / 412.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003532/0.2484, allocations: 2.157 MB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003761/0.2522, allocations: 0.8331 MB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.2532, allocations: 393.3 kB / 416.3 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.2533, allocations: 4.328 kB / 416.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.2544, allocations: 422.7 kB / 416.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.024e-06/0.2544, allocations: 0 / 416.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0139/0.2683, allocations: 2.289 MB / 419 MB, free: 6.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/0.2684, allocations: 85.11 kB / 419.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004558/0.2689, allocations: 406 kB / 419.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.294e-05/0.2689, allocations: 37.7 kB / 419.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.2691, allocations: 232.6 kB / 419.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.2692, allocations: 130.1 kB / 419.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.2694, allocations: 73.97 kB / 419.9 MB, free: 5.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2695, allocations: 362.7 kB / 420.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009361/0.2705, allocations: 292.5 kB / 420.6 MB, free: 5.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009409/0.2714, allocations: 334.1 kB / 420.9 MB, free: 4.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001794/0.2732, allocations: 0.5835 MB / 421.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2733, allocations: 0 / 421.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003495/0.2768, allocations: 0.9743 MB / 422.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.2768, allocations: 33.7 kB / 422.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.2768, allocations: 4 kB / 422.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.278, allocations: 392.5 kB / 422.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004794/0.2785, allocations: 91.86 kB / 422.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00802/0.2865, allocations: 3.679 MB / 426.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006783/0.2872, allocations: 83.61 kB / 426.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.2873, allocations: 15.98 kB / 426.7 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.0002528/0.2875, allocations: 185.7 kB / 426.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.593e-05/0.2876, allocations: 43.44 kB / 426.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.2878, allocations: 52.47 kB / 427 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2878, allocations: 4 kB / 427 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2878, allocations: 0 / 427 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.2878, allocations: 3.984 kB / 427 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006622/0.2885, allocations: 0.6107 MB / 427.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.2885, allocations: 4 kB / 427.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004833/0.289, allocations: 79.86 kB / 427.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/0.2901, allocations: 404.5 kB / 428.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/0.2901, allocations: 11.98 kB / 428.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00785/0.298, allocations: 3.661 MB / 431.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.298, allocations: 0 / 431.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005714/0.3037, allocations: 1.454 MB / 433.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000243/0.304, allocations: 180.5 kB / 433.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.377e-05/0.3041, allocations: 15.94 kB / 433.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005888/0.3047, allocations: 59.92 kB / 433.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.3048, allocations: 55.92 kB / 433.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.694e-05/0.3049, allocations: 16 kB / 433.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003229/0.3052, allocations: 295.1 kB / 433.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.3052, allocations: 0 / 433.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006198/0.3059, allocations: 175.7 kB / 434 MB, free: 7.449 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.0001657/0.306, allocations: 107.2 kB / 434.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002618/0.3086, allocations: 0.9193 MB / 435 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3087, allocations: 0 / 435 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.3102, allocations: 0.5645 MB / 435.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004786/0.3107, allocations: 85.41 kB / 435.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.3136, allocations: 1.223 MB / 436.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.314, allocations: 0.8395 MB / 437.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3142, allocations: 35.44 kB / 437.8 MB, free: 3.574 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3142, allocations: 0 / 437.8 MB, free: 3.574 MB / 350.1 MB Notification: Performance of Templates: time 0.01206/0.3263, allocations: 9.906 MB / 447.7 MB, free: 9.711 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/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