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.001914/0.001914, allocations: 103.5 kB / 20.97 MB, free: 3.449 MB / 18.57 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.001968/0.001968, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 18.57 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.578/1.578, allocations: 177 MB / 204.4 MB, free: 5.637 MB / 186.7 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 1.763e-06/1.763e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.469e-05/2.645e-05, allocations: 6.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006321/0.006347, allocations: 3.995 MB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.008498, allocations: 1.052 MB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/0.008708, allocations: 8 kB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002533/0.008961, allocations: 87.08 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003865/0.009348, allocations: 202.3 kB / 277.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.009907, allocations: 235.6 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.01096, allocations: 0.8481 MB / 278.6 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.01123, allocations: 117.5 kB / 278.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007222/0.01195, allocations: 475 kB / 279.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004558/0.01241, allocations: 287.3 kB / 279.5 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.01255, allocations: 84 kB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.01272, allocations: 84 kB / 279.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.01291, allocations: 163.4 kB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003394/0.01325, allocations: 251.4 kB / 280.1 MB, free: 9.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001531/0.01478, allocations: 0.8998 MB / 281 MB, free: 9.016 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.01479, allocations: 4 kB / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.01479, allocations: 0 / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.402e-05/0.0148, allocations: 3.938 kB / 281 MB, free: 9.008 MB / 266.7 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.002816/0.01762, allocations: 1.066 MB / 282 MB, free: 7.898 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.01766, allocations: 11.98 kB / 282 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000324/0.01799, allocations: 104.5 kB / 282.1 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006783/0.01867, allocations: 370.5 kB / 282.5 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/0.01871, allocations: 29.38 kB / 282.5 MB, free: 7.367 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.443e-05/0.01881, allocations: 32.38 kB / 282.6 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.02022, allocations: 0.6217 MB / 283.2 MB, free: 6.676 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.02024, allocations: 192 / 283.2 MB, free: 6.676 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.503e-05/0.02029, allocations: 16.38 kB / 283.2 MB, free: 6.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.0203, allocations: 11.94 kB / 283.2 MB, free: 6.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.02192, allocations: 0.5426 MB / 283.8 MB, free: 6.105 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/0.02605, allocations: 2.279 MB / 286 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003499/0.02955, allocations: 0.7033 MB / 286.7 MB, free: 3.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009134/0.03046, allocations: 332.2 kB / 287.1 MB, free: 2.691 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.03051, allocations: 8.328 kB / 287.1 MB, free: 2.684 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001291/0.0318, allocations: 443.6 kB / 287.5 MB, free: 2.223 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.793e-06/0.0318, allocations: 0 / 287.5 MB, free: 2.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.01418/0.04598, allocations: 1.967 MB / 289.5 MB, free: 248 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.04606, allocations: 81.11 kB / 289.5 MB, free: 148 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1048/0.1508, allocations: 0.509 MB / 290.1 MB, free: 28.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001895/0.151, allocations: 33.67 kB / 290.1 MB, free: 28.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.1512, allocations: 307.8 kB / 290.4 MB, free: 28.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.1514, allocations: 148.4 kB / 290.5 MB, free: 28.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/0.1516, allocations: 87.95 kB / 290.6 MB, free: 28.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1518, allocations: 0.5561 MB / 291.2 MB, free: 28.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008079/0.1526, allocations: 279 kB / 291.4 MB, free: 27.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007599/0.1533, allocations: 363.7 kB / 291.8 MB, free: 27.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.1547, allocations: 0.5205 MB / 292.3 MB, free: 27.78 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1547, allocations: 2.5 kB / 292.3 MB, free: 27.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003195/0.1579, allocations: 0.914 MB / 293.2 MB, free: 27.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/0.1579, allocations: 36.56 kB / 293.3 MB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1579, allocations: 1.062 kB / 293.3 MB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.1591, allocations: 403.3 kB / 293.7 MB, free: 27.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004053/0.1595, allocations: 77.61 kB / 293.7 MB, free: 27.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007647/0.1671, allocations: 4.079 MB / 297.8 MB, free: 24.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006012/0.1678, allocations: 70.34 kB / 297.9 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-05/0.1678, allocations: 14.16 kB / 297.9 MB, free: 24.46 MB / 266.7 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.0002374/0.168, allocations: 217.8 kB / 298.1 MB, free: 24.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.991e-05/0.1681, allocations: 58.89 kB / 298.2 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.1683, allocations: 56.5 kB / 298.2 MB, free: 24.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1683, allocations: 7.812 kB / 298.2 MB, free: 24.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.1683, allocations: 1.344 kB / 298.2 MB, free: 24.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1683, allocations: 6.047 kB / 298.2 MB, free: 24.19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006092/0.1689, allocations: 0.5052 MB / 298.8 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1689, allocations: 0 / 298.8 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000376/0.1693, allocations: 59.12 kB / 298.8 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.1703, allocations: 403.9 kB / 299.2 MB, free: 23.78 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.1703, allocations: 12.45 kB / 299.2 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007787/0.1781, allocations: 4.075 MB / 303.3 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1781, allocations: 1.125 kB / 303.3 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005115/0.1832, allocations: 1.313 MB / 304.6 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/0.1836, allocations: 108.4 kB / 304.7 MB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.938e-05/0.1836, allocations: 11.39 kB / 304.7 MB, free: 20.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004543/0.1841, allocations: 49.67 kB / 304.8 MB, free: 20.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.1843, allocations: 56.58 kB / 304.8 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.202e-05/0.1843, allocations: 13.66 kB / 304.8 MB, free: 20.35 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003855/0.1847, allocations: 349.8 kB / 305.2 MB, free: 20.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1847, allocations: 0 / 305.2 MB, free: 20.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000691/0.1854, allocations: 175.9 kB / 305.4 MB, free: 20.13 MB / 266.7 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.0001301/0.1855, allocations: 112.7 kB / 305.5 MB, free: 20.03 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002165/0.1877, allocations: 0.9566 MB / 306.4 MB, free: 19.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1877, allocations: 0 / 306.4 MB, free: 19.54 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.1889, allocations: 0.6075 MB / 307 MB, free: 19.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.1893, allocations: 94.52 kB / 307.1 MB, free: 19.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.1917, allocations: 1.135 MB / 308.3 MB, free: 18.26 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.1918, allocations: 243.4 kB / 308.5 MB, free: 18 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.192, allocations: 47.23 kB / 308.5 MB, free: 17.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.1921, allocations: 32.5 kB / 308.6 MB, free: 17.92 MB / 266.7 MB Notification: Performance of SimCode: time 8.71e-07/0.1921, allocations: 0 / 308.6 MB, free: 17.92 MB / 266.7 MB Notification: Performance of Templates: time 0.01627/0.2084, allocations: 13.97 MB / 322.5 MB, free: 4.09 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/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: 5.702531634015031]