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.001846/0.001846, 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 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.00233/0.00233, allocations: 211 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.463/1.463, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.001627/0.001627, allocations: 47.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2452, allocations: 53.36 MB / 432.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005595/0.2508, allocations: 3.727 MB / 436.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.2528, allocations: 1.025 MB / 437.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002184/0.2531, allocations: 7.938 kB / 437.1 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002288/0.2533, allocations: 87.14 kB / 437.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003269/0.2536, allocations: 194.4 kB / 437.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004951/0.2541, allocations: 227.7 kB / 437.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007902/0.2549, allocations: 0.825 MB / 438.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.2551, allocations: 105.4 kB / 438.5 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004579/0.2556, allocations: 326.9 kB / 438.8 MB, free: 184 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000427/0.256, allocations: 326.6 kB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.2561, allocations: 84 kB / 439.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.2563, allocations: 88 kB / 439.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.2564, allocations: 159.5 kB / 439.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002821/0.2567, allocations: 282.8 kB / 439.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008677/0.2576, allocations: 0.8592 MB / 440.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.2576, allocations: 4 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.2576, allocations: 0 / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.2576, allocations: 0 / 440.6 MB, free: 14.39 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.002599/0.2602, allocations: 0.9856 MB / 441.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2602, allocations: 12.02 kB / 441.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002274/0.2605, allocations: 68.56 kB / 441.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006565/0.2611, allocations: 368.4 kB / 442 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.2612, allocations: 29.38 kB / 442.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.909e-05/0.2612, allocations: 40.38 kB / 442.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.2627, allocations: 0.6244 MB / 442.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.2627, allocations: 3.938 kB / 442.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.939e-05/0.2628, allocations: 16 kB / 442.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.2628, allocations: 12 kB / 442.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.2647, allocations: 0.6401 MB / 443.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003773/0.2685, allocations: 1.893 MB / 445.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003798/0.2723, allocations: 0.8339 MB / 446.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.2733, allocations: 373.2 kB / 446.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/0.2734, allocations: 4.328 kB / 446.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/0.2745, allocations: 464.3 kB / 447 MB, free: 7.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.354e-06/0.2745, allocations: 0 / 447 MB, free: 7.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01408/0.2886, allocations: 2.305 MB / 449.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.2887, allocations: 93.09 kB / 449.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005347/0.2892, allocations: 393.7 kB / 449.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/0.2893, allocations: 33.7 kB / 449.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.2895, allocations: 236.8 kB / 450 MB, free: 4.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.2897, allocations: 142.8 kB / 450.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.2898, allocations: 74.05 kB / 450.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.29, allocations: 354.7 kB / 450.6 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009783/0.291, allocations: 322.3 kB / 450.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.292, allocations: 401.5 kB / 451.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001818/0.2938, allocations: 0.5951 MB / 451.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.2938, allocations: 0 / 451.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003611/0.2975, allocations: 1.015 MB / 452.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.723e-05/0.2975, allocations: 37.69 kB / 452.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2975, allocations: 7.938 kB / 452.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/0.2988, allocations: 435.1 kB / 453.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.2993, allocations: 91.86 kB / 453.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008759/0.3081, allocations: 3.613 MB / 457 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007239/0.3088, allocations: 95.8 kB / 457.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/0.3089, allocations: 12 kB / 457.2 MB, free: 13.42 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.0002921/0.3092, allocations: 174.8 kB / 457.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.803e-05/0.3092, allocations: 47.72 kB / 457.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.3094, allocations: 60.41 kB / 457.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3094, allocations: 4 kB / 457.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3094, allocations: 0 / 457.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3094, allocations: 4 kB / 457.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006137/0.31, allocations: 441.1 kB / 457.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.31, allocations: 0 / 457.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004951/0.3105, allocations: 87.84 kB / 458 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.3117, allocations: 432.6 kB / 458.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.494e-05/0.3118, allocations: 7.984 kB / 458.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008418/0.3202, allocations: 3.605 MB / 462 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.3202, allocations: 4 kB / 462 MB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00589/0.3261, allocations: 1.504 MB / 463.5 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.3264, allocations: 99.58 kB / 463.6 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.872e-05/0.3265, allocations: 15.98 kB / 463.6 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005838/0.327, allocations: 75.86 kB / 463.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.3272, allocations: 51.91 kB / 463.7 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.174e-05/0.3272, allocations: 11.98 kB / 463.7 MB, free: 6.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003454/0.3276, allocations: 287.1 kB / 464 MB, free: 6.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3276, allocations: 0 / 464 MB, free: 6.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006567/0.3282, allocations: 183.8 kB / 464.2 MB, free: 6.199 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.0001688/0.3284, allocations: 107.2 kB / 464.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00291/0.3313, allocations: 0.9714 MB / 465.3 MB, free: 5.082 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3313, allocations: 0 / 465.3 MB, free: 5.082 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.333, allocations: 0.5765 MB / 465.9 MB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004893/0.3335, allocations: 76.59 kB / 465.9 MB, free: 4.422 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.3369, allocations: 1.301 MB / 467.2 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.3371, allocations: 232.9 kB / 467.5 MB, free: 2.832 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.3373, allocations: 35.42 kB / 467.5 MB, free: 2.797 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3373, allocations: 4 kB / 467.5 MB, free: 2.793 MB / 366.1 MB Notification: Performance of Templates: time 0.01489/0.3521, allocations: 10.04 MB / 477.5 MB, free: 8.785 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.198083266150206]