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.00118/0.00118, allocations: 109.8 kB / 17.74 MB, free: 5.316 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.001273/0.001274, allocations: 189.6 kB / 18.67 MB, free: 4.395 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.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 51.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.265, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004997/0.27, allocations: 4.057 MB / 405.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.2719, allocations: 1.013 MB / 406.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/0.2722, allocations: 8 kB / 406.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002462/0.2725, allocations: 83.14 kB / 406.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003522/0.2729, allocations: 186.4 kB / 406.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005122/0.2734, allocations: 215.7 kB / 407 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007413/0.2742, allocations: 0.8017 MB / 407.8 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.2745, allocations: 172.9 kB / 407.9 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003727/0.2748, allocations: 314.9 kB / 408.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003756/0.2752, allocations: 358.7 kB / 408.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.2753, allocations: 80 kB / 408.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.2755, allocations: 80 kB / 408.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.2756, allocations: 163.4 kB / 408.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002975/0.2759, allocations: 330.5 kB / 409.2 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007611/0.2767, allocations: 0.8422 MB / 410.1 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2767, allocations: 0 / 410.1 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2767, allocations: 0 / 410.1 MB, free: 176 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.2767, allocations: 4 kB / 410.1 MB, free: 172 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.002606/0.2793, allocations: 1.022 MB / 411.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.556e-05/0.2794, allocations: 12.02 kB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.2795, allocations: 64.19 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006119/0.2802, allocations: 409.9 kB / 411.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.2802, allocations: 37.36 kB / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.44e-05/0.2803, allocations: 36.38 kB / 411.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.2817, allocations: 0.5954 MB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.2818, allocations: 3.938 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/0.2818, allocations: 20 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.2819, allocations: 8 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.2837, allocations: 0.6206 MB / 412.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003793/0.2875, allocations: 2.149 MB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003848/0.2914, allocations: 0.8354 MB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.2924, allocations: 398.6 kB / 416.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.2925, allocations: 4.328 kB / 416.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/0.2937, allocations: 430.6 kB / 416.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.464e-06/0.2937, allocations: 0 / 416.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01412/0.3078, allocations: 2.285 MB / 419 MB, free: 6.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.3079, allocations: 81.11 kB / 419.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005983/0.3085, allocations: 410 kB / 419.5 MB, free: 6.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.222e-05/0.3086, allocations: 33.7 kB / 419.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.3088, allocations: 228.6 kB / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.309, allocations: 130.1 kB / 419.8 MB, free: 6.078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/0.3092, allocations: 73.97 kB / 419.9 MB, free: 5.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3094, allocations: 370.7 kB / 420.3 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009703/0.3103, allocations: 284.6 kB / 420.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009702/0.3113, allocations: 334.1 kB / 420.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.3132, allocations: 0.5834 MB / 421.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3132, allocations: 0 / 421.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003596/0.3168, allocations: 0.9783 MB / 422.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.491e-05/0.3169, allocations: 33.69 kB / 422.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3169, allocations: 0 / 422.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.3181, allocations: 392.5 kB / 422.9 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004988/0.3187, allocations: 87.92 kB / 422.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008499/0.3272, allocations: 3.679 MB / 426.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007555/0.328, allocations: 87.66 kB / 426.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.251e-05/0.3281, allocations: 23.98 kB / 426.7 MB, free: 14.98 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.0002965/0.3284, allocations: 169.8 kB / 426.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.3285, allocations: 43.44 kB / 426.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.3287, allocations: 60.45 kB / 427 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3287, allocations: 4 kB / 427 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3287, allocations: 0 / 427 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.3287, allocations: 0 / 427 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00089/0.3296, allocations: 0.6145 MB / 427.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3296, allocations: 0 / 427.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005192/0.3301, allocations: 83.91 kB / 427.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.3313, allocations: 400.5 kB / 428.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/0.3314, allocations: 7.984 kB / 428.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008186/0.3396, allocations: 3.661 MB / 431.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3396, allocations: 4.031 kB / 431.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005828/0.3455, allocations: 1.454 MB / 433.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003425/0.3458, allocations: 180.5 kB / 433.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.346, allocations: 11.94 kB / 433.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006179/0.3466, allocations: 67.91 kB / 433.5 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.3468, allocations: 51.94 kB / 433.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.3469, allocations: 15.98 kB / 433.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003855/0.3473, allocations: 291.2 kB / 433.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3473, allocations: 0 / 433.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007179/0.348, allocations: 171.8 kB / 434 MB, free: 7.48 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.0002026/0.3482, allocations: 117.8 kB / 434.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002766/0.351, allocations: 0.9193 MB / 435 MB, free: 6.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.351, allocations: 0 / 435 MB, free: 6.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.3526, allocations: 0.5645 MB / 435.6 MB, free: 5.832 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005842/0.3532, allocations: 89.39 kB / 435.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/0.3565, allocations: 1.226 MB / 436.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.357, allocations: 0.8395 MB / 437.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3572, allocations: 39.38 kB / 437.8 MB, free: 3.59 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3572, allocations: 0 / 437.8 MB, free: 3.59 MB / 350.1 MB Notification: Performance of Templates: time 0.01575/0.373, allocations: 9.967 MB / 447.7 MB, free: 9.664 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