Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001877/0.001877, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002404/0.002404, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 230.5 MB / 258.1 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 67.89 kB / 379 MB, free: 2.316 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2619, allocations: 53.41 MB / 432.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005521/0.2675, allocations: 3.711 MB / 436.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.2695, allocations: 1.028 MB / 437.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002579/0.2698, allocations: 15.88 kB / 437.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00025/0.2701, allocations: 87.14 kB / 437.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003541/0.2704, allocations: 190.4 kB / 437.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000528/0.2709, allocations: 227.7 kB / 437.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008607/0.2718, allocations: 0.8251 MB / 438.5 MB, free: 440 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/0.272, allocations: 109.4 kB / 438.6 MB, free: 324 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004697/0.2725, allocations: 323 kB / 438.9 MB, free: 0 / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000433/0.2729, allocations: 322.6 kB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.2731, allocations: 84 kB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.2732, allocations: 99.92 kB / 439.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.2734, allocations: 151.5 kB / 439.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.2737, allocations: 286.8 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009234/0.2746, allocations: 0.8716 MB / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2746, allocations: 0 / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2746, allocations: 0 / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.2746, allocations: 0 / 440.7 MB, free: 14.2 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.002662/0.2773, allocations: 0.9818 MB / 441.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2773, allocations: 15.98 kB / 441.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002353/0.2776, allocations: 72.5 kB / 441.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006625/0.2782, allocations: 364.4 kB / 442.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.2783, allocations: 25.38 kB / 442.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.463e-05/0.2783, allocations: 40.38 kB / 442.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.2799, allocations: 0.6322 MB / 442.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.2799, allocations: 0 / 442.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.414e-05/0.2799, allocations: 16 kB / 442.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.2799, allocations: 8 kB / 442.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002008/0.2819, allocations: 0.644 MB / 443.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003841/0.2858, allocations: 1.897 MB / 445.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003854/0.2896, allocations: 0.8233 MB / 446.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.2907, allocations: 381.2 kB / 446.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.2908, allocations: 8.312 kB / 446.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.292, allocations: 460.3 kB / 447 MB, free: 7.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.954e-06/0.292, allocations: 0 / 447 MB, free: 7.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01411/0.3061, allocations: 2.301 MB / 449.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.3061, allocations: 85.11 kB / 449.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005287/0.3067, allocations: 397.6 kB / 449.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.493e-05/0.3067, allocations: 37.7 kB / 449.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002195/0.307, allocations: 240.8 kB / 450.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.3071, allocations: 134.8 kB / 450.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.3073, allocations: 78.05 kB / 450.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3075, allocations: 350.7 kB / 450.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001006/0.3085, allocations: 330.2 kB / 450.9 MB, free: 3.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.3095, allocations: 401.5 kB / 451.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001835/0.3113, allocations: 0.5913 MB / 451.9 MB, free: 2.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3113, allocations: 8 kB / 451.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003603/0.3149, allocations: 1.015 MB / 453 MB, free: 1.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/0.315, allocations: 37.69 kB / 453 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.315, allocations: 0 / 453 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.3163, allocations: 436.4 kB / 453.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004969/0.3168, allocations: 91.86 kB / 453.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009013/0.3258, allocations: 3.619 MB / 457.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007888/0.3266, allocations: 87.8 kB / 457.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.603e-05/0.3267, allocations: 12 kB / 457.2 MB, free: 13.23 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.0003171/0.327, allocations: 174.8 kB / 457.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.877e-05/0.3271, allocations: 55.64 kB / 457.4 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.3272, allocations: 60.42 kB / 457.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3272, allocations: 4 kB / 457.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.3272, allocations: 0 / 457.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.3272, allocations: 3.984 kB / 457.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006008/0.3278, allocations: 433.1 kB / 457.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3278, allocations: 3.938 kB / 457.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005091/0.3283, allocations: 91.84 kB / 458 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3296, allocations: 432.6 kB / 458.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.3296, allocations: 7.984 kB / 458.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008533/0.3381, allocations: 3.605 MB / 462.1 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3381, allocations: 0 / 462.1 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005886/0.344, allocations: 1.504 MB / 463.6 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002834/0.3443, allocations: 95.64 kB / 463.7 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.092e-05/0.3444, allocations: 11.98 kB / 463.7 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/0.345, allocations: 75.91 kB / 463.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.3451, allocations: 47.92 kB / 463.8 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.753e-05/0.3451, allocations: 11.98 kB / 463.8 MB, free: 6.484 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003393/0.3455, allocations: 283.2 kB / 464.1 MB, free: 6.211 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3455, allocations: 0 / 464.1 MB, free: 6.211 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006318/0.3461, allocations: 183.7 kB / 464.3 MB, free: 6.031 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.0001678/0.3463, allocations: 111.2 kB / 464.4 MB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002843/0.3491, allocations: 0.9675 MB / 465.3 MB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3491, allocations: 4 kB / 465.3 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001632/0.3507, allocations: 0.5804 MB / 465.9 MB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004403/0.3512, allocations: 73.55 kB / 466 MB, free: 4.246 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.3545, allocations: 1.306 MB / 467.3 MB, free: 2.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.3548, allocations: 232.9 kB / 467.5 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.3549, allocations: 35.42 kB / 467.6 MB, free: 2.613 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3549, allocations: 4 kB / 467.6 MB, free: 2.609 MB / 366.1 MB Notification: Performance of Templates: time 0.01466/0.3696, allocations: 10.05 MB / 477.6 MB, free: 8.594 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.387759331148118]