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.001339/0.001339, allocations: 75.75 kB / 21.25 MB, free: 396 kB / 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.001456/0.001456, allocations: 159.1 kB / 24.49 MB, free: 3.453 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.458/1.458, allocations: 177.1 MB / 204.7 MB, free: 8.883 MB / 190.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.001891/0.001891, allocations: 57.98 kB / 325.5 MB, free: 208 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09967/0.1016, allocations: 53.39 MB / 378.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005873/0.1074, allocations: 3.717 MB / 382.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.1099, allocations: 1.025 MB / 383.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000421/0.1104, allocations: 11.94 kB / 383.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003262/0.1107, allocations: 87.12 kB / 383.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005454/0.1112, allocations: 190.4 kB / 383.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006352/0.1119, allocations: 231.7 kB / 384.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009762/0.1128, allocations: 0.8289 MB / 385 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/0.1131, allocations: 117.5 kB / 385.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004542/0.1135, allocations: 319 kB / 385.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004427/0.114, allocations: 330.5 kB / 385.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1141, allocations: 84 kB / 385.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.1143, allocations: 84 kB / 385.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.1144, allocations: 159.5 kB / 386.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003119/0.1147, allocations: 282.8 kB / 386.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009403/0.1157, allocations: 0.868 MB / 387.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1157, allocations: 0 / 387.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1157, allocations: 0 / 387.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1157, allocations: 4 kB / 387.2 MB, free: 7.152 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.00284/0.1185, allocations: 0.9817 MB / 388.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.1186, allocations: 15.98 kB / 388.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002529/0.1188, allocations: 72.55 kB / 388.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007436/0.1196, allocations: 360.5 kB / 388.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/0.1196, allocations: 33.36 kB / 388.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.377e-05/0.1197, allocations: 40.36 kB / 388.7 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.1212, allocations: 0.6283 MB / 389.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1212, allocations: 4 kB / 389.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.203e-05/0.1213, allocations: 16 kB / 389.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.1213, allocations: 8 kB / 389.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.1233, allocations: 0.6401 MB / 390 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.1272, allocations: 1.901 MB / 391.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003892/0.1311, allocations: 0.8315 MB / 392.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.1322, allocations: 377.2 kB / 393.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.459e-05/0.1322, allocations: 8.312 kB / 393.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.1334, allocations: 460.3 kB / 393.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.894e-06/0.1334, allocations: 4 kB / 393.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01434/0.1477, allocations: 2.305 MB / 395.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/0.1478, allocations: 81.11 kB / 395.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005527/0.1484, allocations: 393.7 kB / 396.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.953e-05/0.1484, allocations: 33.7 kB / 396.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.1487, allocations: 240.8 kB / 396.6 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.1488, allocations: 142.8 kB / 396.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.149, allocations: 74 kB / 396.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1492, allocations: 358.7 kB / 397.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009963/0.1502, allocations: 326.4 kB / 397.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.1512, allocations: 393.9 kB / 397.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001876/0.1531, allocations: 0.5913 MB / 398.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.1531, allocations: 4 kB / 398.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003765/0.1568, allocations: 1.019 MB / 399.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.059e-05/0.1569, allocations: 40.67 kB / 399.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1569, allocations: 0 / 399.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00136/0.1583, allocations: 432.4 kB / 399.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.1588, allocations: 99.8 kB / 400 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008882/0.1677, allocations: 3.608 MB / 403.6 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007195/0.1684, allocations: 95.88 kB / 403.7 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.92e-05/0.1684, allocations: 11.98 kB / 403.8 MB, free: 6.172 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.0003032/0.1687, allocations: 178 kB / 403.9 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.1688, allocations: 47.72 kB / 404 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001419/0.169, allocations: 56.41 kB / 404 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.169, allocations: 8 kB / 404 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.169, allocations: 0 / 404 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.169, allocations: 4.078 kB / 404 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006344/0.1696, allocations: 429.4 kB / 404.5 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.1696, allocations: 3.938 kB / 404.5 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.1701, allocations: 83.86 kB / 404.5 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/0.1714, allocations: 440.4 kB / 405 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.472e-05/0.1714, allocations: 4 kB / 405 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008354/0.1798, allocations: 3.605 MB / 408.6 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1798, allocations: 0 / 408.6 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005885/0.1857, allocations: 1.492 MB / 410.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/0.1859, allocations: 107.6 kB / 410.2 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.622e-05/0.186, allocations: 8 kB / 410.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005863/0.1866, allocations: 79.84 kB / 410.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.1868, allocations: 51.91 kB / 410.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-05/0.1868, allocations: 15.98 kB / 410.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003407/0.1872, allocations: 283.1 kB / 410.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1872, allocations: 0 / 410.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006461/0.1878, allocations: 183.8 kB / 410.8 MB, free: 14.97 MB / 382.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.0001612/0.188, allocations: 109.3 kB / 410.9 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002892/0.1909, allocations: 0.9675 MB / 411.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.1909, allocations: 7.938 kB / 411.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/0.1925, allocations: 0.5765 MB / 412.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.1929, allocations: 77.73 kB / 412.5 MB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003212/0.1961, allocations: 1.257 MB / 413.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.1963, allocations: 240.9 kB / 414 MB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.1965, allocations: 43.3 kB / 414.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.1966, allocations: 36.48 kB / 414.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1966, allocations: 0 / 414.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of Templates: time 0.02122/0.2179, allocations: 13.44 MB / 427.5 MB, free: 14.21 MB / 398.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 -s ida -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: 5.792679885984398]