Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001342/0.002402, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007139/0.0007139, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009927/0.001707, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8692/0.8692, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.155/1.024, allocations: 52.49 MB / 238.5 MB, free: 7.629 MB / 234.7 MB " [Timeout remaining time 179] 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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 239.7 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.49e-05, allocations: 2.312 kB / 239.8 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00321/0.003235, allocations: 2.957 MB / 242.7 MB, free: 3.402 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008619/0.004097, allocations: 0.7528 MB / 243.5 MB, free: 2.648 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.004208, allocations: 4 kB / 243.5 MB, free: 2.645 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.58e-05/0.004304, allocations: 52.92 kB / 243.5 MB, free: 2.594 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.004434, allocations: 103.9 kB / 243.6 MB, free: 2.492 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001863/0.00462, allocations: 108.8 kB / 243.7 MB, free: 2.387 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.00491, allocations: 429.9 kB / 244.1 MB, free: 1.965 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.005059, allocations: 93.41 kB / 244.2 MB, free: 1.871 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.005307, allocations: 260.1 kB / 244.5 MB, free: 1.617 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.005472, allocations: 127.6 kB / 244.6 MB, free: 1.492 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.553e-05/0.005518, allocations: 40 kB / 244.7 MB, free: 1.453 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.948e-05/0.005557, allocations: 36 kB / 244.7 MB, free: 1.418 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.546e-05/0.005603, allocations: 59.75 kB / 244.7 MB, free: 1.359 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.154e-05/0.005684, allocations: 103.8 kB / 244.8 MB, free: 1.258 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.005924, allocations: 239.2 kB / 245.1 MB, free: 1.023 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.38e-05/0.005938, allocations: 1.281 kB / 245.1 MB, free: 1.023 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.71e-07/0.005939, allocations: 0 / 245.1 MB, free: 1.023 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.005952, allocations: 0 / 245.1 MB, free: 1.023 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0006637/0.006615, allocations: 0.5941 MB / 245.7 MB, free: 416 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.006645, allocations: 15.95 kB / 245.7 MB, free: 400 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.965e-05/0.006705, allocations: 44.91 kB / 245.7 MB, free: 356 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.006907, allocations: 190.1 kB / 245.9 MB, free: 140 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.006922, allocations: 20.88 kB / 245.9 MB, free: 120 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.006957, allocations: 24.38 kB / 246 MB, free: 96 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.007218, allocations: 273.1 kB / 246.2 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.007227, allocations: 192 / 246.2 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.007242, allocations: 10.16 kB / 246.2 MB, free: 15.79 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.007253, allocations: 15.92 kB / 246.3 MB, free: 15.78 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.007355, allocations: 71.41 kB / 246.3 MB, free: 15.71 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007774/0.008132, allocations: 0.7902 MB / 247.1 MB, free: 14.88 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.008368, allocations: 136 kB / 247.3 MB, free: 14.74 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.008479, allocations: 76.81 kB / 247.3 MB, free: 14.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.0085, allocations: 11.92 kB / 247.3 MB, free: 14.65 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001545/0.008654, allocations: 180.8 kB / 247.5 MB, free: 14.44 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.008656, allocations: 4.594 kB / 247.5 MB, free: 14.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005879/0.009244, allocations: 301.5 kB / 247.8 MB, free: 14.14 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.00929, allocations: 81.11 kB / 247.9 MB, free: 14.04 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.009411, allocations: 205 kB / 248.1 MB, free: 13.82 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.009431, allocations: 37.69 kB / 248.1 MB, free: 13.78 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.639e-05/0.009497, allocations: 156.6 kB / 248.3 MB, free: 13.62 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/0.009541, allocations: 71.41 kB / 248.4 MB, free: 13.55 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-05/0.009596, allocations: 53.62 kB / 248.4 MB, free: 13.5 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.149e-05/0.009678, allocations: 338.8 kB / 248.7 MB, free: 13.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.243e-05/0.00971, allocations: 20 kB / 248.8 MB, free: 13.14 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.119e-05/0.009781, allocations: 133 kB / 248.9 MB, free: 12.98 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.287e-05/0.009874, allocations: 98.3 kB / 249 MB, free: 12.87 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.009877, allocations: 4 kB / 249 MB, free: 12.87 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001614/0.01004, allocations: 154.3 kB / 249.1 MB, free: 12.71 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.01005, allocations: 4 kB / 249.1 MB, free: 12.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.01006, allocations: 4.125 kB / 249.1 MB, free: 12.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/0.01024, allocations: 68.78 kB / 249.2 MB, free: 12.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.01035, allocations: 31.92 kB / 249.2 MB, free: 12.6 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.0114, allocations: 1.614 MB / 250.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.5e-05/0.01148, allocations: 27.88 kB / 250.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.01149, allocations: 8 kB / 250.9 MB, free: 10.86 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 8.136e-05/0.01157, allocations: 129.7 kB / 251 MB, free: 10.73 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/0.0116, allocations: 23.97 kB / 251 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.056e-05/0.01163, allocations: 26.28 kB / 251.1 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.01163, allocations: 8.031 kB / 251.1 MB, free: 10.67 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.01164, allocations: 3.984 kB / 251.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.01164, allocations: 0 / 251.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003817/0.01202, allocations: 459.8 kB / 251.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.01202, allocations: 3.984 kB / 251.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.587e-05/0.01211, allocations: 31.92 kB / 251.6 MB, free: 10.15 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.593e-05/0.01216, allocations: 23.86 kB / 251.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001265/0.01228, allocations: 60.78 kB / 251.6 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.01229, allocations: 4 kB / 251.6 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009316/0.01323, allocations: 1.626 MB / 253.3 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.01323, allocations: 0 / 253.3 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.01343, allocations: 284.1 kB / 253.6 MB, free: 8.051 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.01345, allocations: 8.062 kB / 253.6 MB, free: 8.043 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.038e-05/0.01353, allocations: 11.98 kB / 253.6 MB, free: 8.031 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.0136, allocations: 35.94 kB / 253.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.0136, allocations: 4 kB / 253.6 MB, free: 7.992 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.17e-05/0.01366, allocations: 70.89 kB / 253.7 MB, free: 7.922 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01366, allocations: 3.938 kB / 253.7 MB, free: 7.918 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002596/0.01392, allocations: 95.77 kB / 253.8 MB, free: 7.824 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000114/0.01403, allocations: 92.41 kB / 253.9 MB, free: 7.723 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003168/0.01435, allocations: 263.7 kB / 254.1 MB, free: 7.453 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.29e-05/0.01436, allocations: 7.984 kB / 254.1 MB, free: 7.445 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.01453, allocations: 238.3 kB / 254.4 MB, free: 7.199 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.0149, allocations: 0.6087 MB / 255 MB, free: 6.465 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.01725, allocations: 0.5489 MB / 255.5 MB, free: 5.883 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.678e-05/0.0173, allocations: 88.31 kB / 255.6 MB, free: 5.777 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.011e-05/0.01737, allocations: 26.28 kB / 255.6 MB, free: 5.754 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.01749, allocations: 99.33 kB / 255.7 MB, free: 5.656 MB / 250.7 MB Notification: Performance of SimCode: time 1.253e-06/0.01749, allocations: 0 / 255.7 MB, free: 5.656 MB / 250.7 MB Notification: Performance of Templates: time 0.006589/0.02408, allocations: 5.226 MB / 261 MB, free: 0.543 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5577468993142247]