Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001417/0.001418, allocations: 179.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.567/1.567, allocations: 205.6 MB / 223.7 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009409/0.0009412, allocations: 86.39 kB / 272.1 MB, free: 8.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002529/0.0002529, allocations: 8 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2762, allocations: 47.58 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003327/0.2796, allocations: 3.365 MB / 380 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.2811, allocations: 1.065 MB / 381 MB, free: 42.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/0.2813, allocations: 9.125 kB / 381 MB, free: 42.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.2814, allocations: 62.08 kB / 381.1 MB, free: 41.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.2817, allocations: 144.1 kB / 381.2 MB, free: 41.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.282, allocations: 187.4 kB / 381.4 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005987/0.2827, allocations: 0.7014 MB / 382.1 MB, free: 41.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.2829, allocations: 150.3 kB / 382.3 MB, free: 41.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002767/0.2832, allocations: 236.2 kB / 382.5 MB, free: 41.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000295/0.2835, allocations: 290.4 kB / 382.8 MB, free: 40.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.179e-05/0.2836, allocations: 33.16 kB / 382.8 MB, free: 40.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.379e-05/0.2837, allocations: 35.16 kB / 382.9 MB, free: 40.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.284e-05/0.2838, allocations: 105.5 kB / 383 MB, free: 40.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.284, allocations: 292.8 kB / 383.2 MB, free: 40.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005305/0.2845, allocations: 0.7336 MB / 384 MB, free: 39.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2846, allocations: 0 / 384 MB, free: 39.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2846, allocations: 0 / 384 MB, free: 39.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.2846, allocations: 1.031 kB / 384 MB, free: 39.97 MB / 298.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.002152/0.2867, allocations: 0.9499 MB / 384.9 MB, free: 39.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.2868, allocations: 9.438 kB / 384.9 MB, free: 39.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.2869, allocations: 56.56 kB / 385 MB, free: 39.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004291/0.2873, allocations: 393.7 kB / 385.4 MB, free: 38.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.956e-05/0.2874, allocations: 33.34 kB / 385.4 MB, free: 38.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.6e-05/0.2875, allocations: 39.59 kB / 385.4 MB, free: 38.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.2888, allocations: 0.5945 MB / 386 MB, free: 38.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.2888, allocations: 0 / 386 MB, free: 38.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.372e-05/0.2888, allocations: 11.31 kB / 386.1 MB, free: 38.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.2888, allocations: 13.31 kB / 386.1 MB, free: 38.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.2905, allocations: 0.6452 MB / 386.7 MB, free: 38.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002844/0.2934, allocations: 2.055 MB / 388.8 MB, free: 36.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003293/0.2967, allocations: 0.9358 MB / 389.7 MB, free: 35.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000824/0.2975, allocations: 405.2 kB / 390.1 MB, free: 34.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.2975, allocations: 7.984 kB / 390.1 MB, free: 34.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009229/0.2985, allocations: 447.3 kB / 390.5 MB, free: 34.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.003e-06/0.2985, allocations: 0 / 390.5 MB, free: 34.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.008604/0.3071, allocations: 2.045 MB / 392.6 MB, free: 32.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.3072, allocations: 85.11 kB / 392.7 MB, free: 32.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.3077, allocations: 381.7 kB / 393 MB, free: 31.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/0.3077, allocations: 33.7 kB / 393.1 MB, free: 31.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.3079, allocations: 228.5 kB / 393.3 MB, free: 31.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.229e-05/0.308, allocations: 122.2 kB / 393.4 MB, free: 31.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/0.308, allocations: 8 kB / 393.4 MB, free: 31.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.974e-05/0.3081, allocations: 354.8 kB / 393.8 MB, free: 30.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007273/0.3089, allocations: 312.6 kB / 394.1 MB, free: 30.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007449/0.3096, allocations: 349.8 kB / 394.4 MB, free: 30.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.311, allocations: 0.6111 MB / 395 MB, free: 29.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.311, allocations: 0 / 395 MB, free: 29.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004067/0.3151, allocations: 1.185 MB / 396.2 MB, free: 28.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/0.3151, allocations: 33.64 kB / 396.2 MB, free: 28.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3151, allocations: 0 / 396.2 MB, free: 28.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.3162, allocations: 432.4 kB / 396.7 MB, free: 28.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004043/0.3166, allocations: 103.9 kB / 396.8 MB, free: 27.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006746/0.3234, allocations: 3.486 MB / 400.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006439/0.324, allocations: 107.7 kB / 400.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.834e-05/0.3241, allocations: 12 kB / 400.4 MB, free: 24.18 MB / 298.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 (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.0002222/0.3243, allocations: 169.1 kB / 400.5 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.319e-05/0.3244, allocations: 47.52 kB / 400.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.935e-05/0.3245, allocations: 52.38 kB / 400.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3245, allocations: 11.94 kB / 400.7 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3245, allocations: 0 / 400.7 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3245, allocations: 0 / 400.7 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005158/0.325, allocations: 0.5833 MB / 401.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.325, allocations: 0 / 401.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003947/0.3254, allocations: 91.86 kB / 401.3 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009623/0.3264, allocations: 416.8 kB / 401.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/0.3265, allocations: 11.98 kB / 401.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00645/0.3329, allocations: 3.486 MB / 405.2 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3329, allocations: 0 / 405.2 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003899/0.3369, allocations: 1.415 MB / 406.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000221/0.3371, allocations: 184.4 kB / 406.8 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.028e-05/0.3372, allocations: 8 kB / 406.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005658/0.3377, allocations: 83.92 kB / 406.9 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.3379, allocations: 43.94 kB / 407 MB, free: 17.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.425e-05/0.3379, allocations: 11.98 kB / 407 MB, free: 17.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002408/0.3382, allocations: 267.2 kB / 407.2 MB, free: 17.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3382, allocations: 0 / 407.2 MB, free: 17.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005437/0.3387, allocations: 175.8 kB / 407.4 MB, free: 16.92 MB / 298.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 (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.0001461/0.3389, allocations: 118.9 kB / 407.5 MB, free: 16.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00213/0.341, allocations: 0.9563 MB / 408.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.341, allocations: 0 / 408.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.3423, allocations: 0.5685 MB / 409 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.3428, allocations: 69.7 kB / 409.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.3454, allocations: 1.428 MB / 410.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.3457, allocations: 0.8274 MB / 411.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002043/0.3459, allocations: 43.27 kB / 411.4 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.719e-05/0.346, allocations: 31.42 kB / 411.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.346, allocations: 4 kB / 411.4 MB, free: 12.79 MB / 298.7 MB Notification: Performance of Templates: time 0.01482/0.3608, allocations: 12.16 MB / 423.6 MB, free: 0.6797 MB / 298.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/jenkins/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