Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 211.4 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 47.92 kB / 379 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2363, allocations: 53.37 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005231/0.2415, allocations: 3.7 MB / 436.1 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.2435, allocations: 1.021 MB / 437.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.2437, allocations: 11.94 kB / 437.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002393/0.2439, allocations: 91.12 kB / 437.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003395/0.2443, allocations: 190.4 kB / 437.4 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005366/0.2448, allocations: 231.6 kB / 437.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008474/0.2457, allocations: 0.8173 MB / 438.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002507/0.2459, allocations: 123.4 kB / 438.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000456/0.2464, allocations: 334.9 kB / 438.8 MB, free: 204 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005212/0.2469, allocations: 362.7 kB / 439.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.247, allocations: 84 kB / 439.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.2472, allocations: 88 kB / 439.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.2473, allocations: 163.4 kB / 439.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003129/0.2476, allocations: 278.8 kB / 439.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009322/0.2486, allocations: 0.8638 MB / 440.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2486, allocations: 0 / 440.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.297e-06/0.2486, allocations: 4 kB / 440.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.2486, allocations: 0 / 440.7 MB, free: 14.38 MB / 350.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.002781/0.2514, allocations: 0.9895 MB / 441.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2514, allocations: 8.031 kB / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.2517, allocations: 72.55 kB / 441.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006665/0.2523, allocations: 360.5 kB / 442.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.2524, allocations: 29.38 kB / 442.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.865e-05/0.2524, allocations: 40.38 kB / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.2539, allocations: 0.636 MB / 442.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.2539, allocations: 0 / 442.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.365e-05/0.254, allocations: 12 kB / 442.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.254, allocations: 12 kB / 442.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.2559, allocations: 0.644 MB / 443.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003827/0.2597, allocations: 1.897 MB / 445.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004205/0.2639, allocations: 0.8276 MB / 446.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.265, allocations: 369.2 kB / 446.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.265, allocations: 8.328 kB / 446.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/0.2662, allocations: 464.2 kB / 447 MB, free: 7.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.024e-06/0.2662, allocations: 0 / 447 MB, free: 7.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01605/0.2823, allocations: 2.297 MB / 449.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.656e-05/0.2824, allocations: 89.11 kB / 449.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005646/0.2829, allocations: 393.7 kB / 449.8 MB, free: 5.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.895e-05/0.283, allocations: 33.7 kB / 449.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.2832, allocations: 240.8 kB / 450 MB, free: 4.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.2834, allocations: 142.8 kB / 450.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.2836, allocations: 74 kB / 450.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.2837, allocations: 354.7 kB / 450.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009788/0.2847, allocations: 330.3 kB / 450.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.2857, allocations: 393.5 kB / 451.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001799/0.2875, allocations: 0.5951 MB / 451.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.2875, allocations: 0 / 451.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003868/0.2914, allocations: 1.027 MB / 452.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.2914, allocations: 29.7 kB / 453 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.2914, allocations: 4 kB / 453 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/0.2928, allocations: 436.4 kB / 453.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005272/0.2933, allocations: 87.91 kB / 453.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009322/0.3027, allocations: 3.616 MB / 457.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007738/0.3034, allocations: 95.8 kB / 457.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.061e-05/0.3035, allocations: 15.94 kB / 457.2 MB, free: 13.4 MB / 366.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.0003058/0.3038, allocations: 174.8 kB / 457.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.3039, allocations: 47.72 kB / 457.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.304, allocations: 56.42 kB / 457.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.304, allocations: 7.938 kB / 457.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.304, allocations: 0 / 457.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.304, allocations: 3.984 kB / 457.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006251/0.3047, allocations: 441.1 kB / 457.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3047, allocations: 3.938 kB / 457.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005102/0.3052, allocations: 83.86 kB / 458 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.3064, allocations: 435.5 kB / 458.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.715e-05/0.3065, allocations: 11.98 kB / 458.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008755/0.3152, allocations: 3.598 MB / 462 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3152, allocations: 0 / 462 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006135/0.3213, allocations: 1.504 MB / 463.5 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.3216, allocations: 103.6 kB / 463.6 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.148e-05/0.3217, allocations: 8 kB / 463.7 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006077/0.3223, allocations: 79.91 kB / 463.7 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.3225, allocations: 51.91 kB / 463.8 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.3225, allocations: 8 kB / 463.8 MB, free: 6.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003458/0.3229, allocations: 283.2 kB / 464.1 MB, free: 6.375 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3229, allocations: 0 / 464.1 MB, free: 6.375 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006893/0.3236, allocations: 183.7 kB / 464.2 MB, free: 6.195 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.000176/0.3237, allocations: 115.2 kB / 464.4 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002756/0.3265, allocations: 0.9675 MB / 465.3 MB, free: 5.074 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.3265, allocations: 4 kB / 465.3 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001615/0.3281, allocations: 0.5804 MB / 465.9 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004506/0.3286, allocations: 84.53 kB / 466 MB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.332, allocations: 1.305 MB / 467.3 MB, free: 3.059 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.3322, allocations: 232.9 kB / 467.5 MB, free: 2.805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.3324, allocations: 35.44 kB / 467.6 MB, free: 2.77 MB / 366.1 MB Notification: Performance of SimCode: time 5e-07/0.3324, allocations: 0 / 467.6 MB, free: 2.77 MB / 366.1 MB Notification: Performance of Templates: time 0.01387/0.3462, allocations: 10.04 MB / 477.6 MB, free: 8.758 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.139579612005036]