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.001266/0.001266, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001449/0.001449, allocations: 208.6 kB / 24.49 MB, free: 4.133 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.405/1.405, allocations: 230.6 MB / 258.3 MB, free: 8.234 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.001536/0.001536, allocations: 47.92 kB / 379 MB, free: 2.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.234, allocations: 53.37 MB / 432.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005425/0.2394, allocations: 4.135 MB / 436.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.2412, allocations: 1.071 MB / 437.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.2414, allocations: 11.94 kB / 437.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002156/0.2416, allocations: 91.14 kB / 437.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003199/0.2419, allocations: 186.4 kB / 437.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.2424, allocations: 235.5 kB / 438.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008926/0.2433, allocations: 0.8212 MB / 438.9 MB, free: 400 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.2435, allocations: 115 kB / 439.1 MB, free: 280 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004509/0.244, allocations: 323 kB / 439.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004496/0.2444, allocations: 366.5 kB / 439.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.2445, allocations: 84 kB / 439.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.2447, allocations: 88 kB / 439.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001479/0.2448, allocations: 167.4 kB / 440.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003192/0.2452, allocations: 338.5 kB / 440.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000867/0.246, allocations: 0.8599 MB / 441.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.246, allocations: 0 / 441.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.246, allocations: 0 / 441.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.246, allocations: 0 / 441.3 MB, free: 14.07 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.002654/0.2487, allocations: 0.9856 MB / 442.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2487, allocations: 8.031 kB / 442.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.2489, allocations: 80.55 kB / 442.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006126/0.2496, allocations: 360.5 kB / 442.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.2496, allocations: 33.36 kB / 442.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.036e-05/0.2497, allocations: 36.38 kB / 442.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.2511, allocations: 0.6031 MB / 443.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.2511, allocations: 4 kB / 443.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.867e-05/0.2512, allocations: 12 kB / 443.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.2512, allocations: 12 kB / 443.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001876/0.2531, allocations: 0.6401 MB / 444 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003793/0.2568, allocations: 2.119 MB / 446.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004015/0.2609, allocations: 0.8276 MB / 447 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.2619, allocations: 377.2 kB / 447.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.106e-05/0.262, allocations: 8.312 kB / 447.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.2631, allocations: 434.6 kB / 447.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.883e-06/0.2631, allocations: 0 / 447.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0144/0.2775, allocations: 2.297 MB / 450.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.2776, allocations: 81.11 kB / 450.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005405/0.2781, allocations: 417.9 kB / 450.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.904e-05/0.2782, allocations: 37.69 kB / 450.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.2784, allocations: 236.9 kB / 450.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.2785, allocations: 146.8 kB / 451 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.2787, allocations: 70.06 kB / 451 MB, free: 4.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.2788, allocations: 358.7 kB / 451.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000907/0.2798, allocations: 300.5 kB / 451.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009154/0.2807, allocations: 346 kB / 452 MB, free: 3.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.2824, allocations: 0.5913 MB / 452.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2824, allocations: 0 / 452.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003512/0.2859, allocations: 0.998 MB / 453.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.2859, allocations: 33.7 kB / 453.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.2859, allocations: 3.938 kB / 453.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.2872, allocations: 432.5 kB / 454.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004708/0.2877, allocations: 95.84 kB / 454.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008539/0.2962, allocations: 3.711 MB / 457.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006808/0.2969, allocations: 91.7 kB / 457.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.2969, allocations: 15.98 kB / 458 MB, free: 12.93 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.000262/0.2972, allocations: 180.9 kB / 458.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.111e-05/0.2973, allocations: 51.67 kB / 458.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.2974, allocations: 64.52 kB / 458.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.2974, allocations: 4 kB / 458.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2974, allocations: 0 / 458.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2974, allocations: 0 / 458.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000705/0.2981, allocations: 0.5978 MB / 458.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2981, allocations: 0 / 458.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.2986, allocations: 83.86 kB / 458.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.2998, allocations: 432.6 kB / 459.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.2998, allocations: 8 kB / 459.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008466/0.3083, allocations: 3.714 MB / 463.1 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3083, allocations: 0 / 463.1 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005912/0.3142, allocations: 1.496 MB / 464.6 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.3145, allocations: 107.5 kB / 464.7 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.589e-05/0.3146, allocations: 15.94 kB / 464.7 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005727/0.3151, allocations: 71.91 kB / 464.8 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.3153, allocations: 51.91 kB / 464.8 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.563e-05/0.3153, allocations: 8 kB / 464.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000354/0.3157, allocations: 299.1 kB / 465.1 MB, free: 5.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3157, allocations: 0 / 465.1 MB, free: 5.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006072/0.3163, allocations: 175.8 kB / 465.3 MB, free: 5.418 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.0001599/0.3164, allocations: 122.2 kB / 465.4 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002684/0.3191, allocations: 0.9463 MB / 466.4 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3191, allocations: 0 / 466.4 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/0.3207, allocations: 0.5804 MB / 466.9 MB, free: 3.727 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.3211, allocations: 93.48 kB / 467 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.3244, allocations: 1.297 MB / 468.3 MB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004702/0.3248, allocations: 0.8355 MB / 469.2 MB, free: 1.441 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.325, allocations: 39.42 kB / 469.2 MB, free: 1.402 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.325, allocations: 0 / 469.2 MB, free: 1.402 MB / 366.1 MB Notification: Performance of Templates: time 0.01387/0.3389, allocations: 10.02 MB / 479.2 MB, free: 7.422 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: 7.9117616051808]