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.001729/0.001729, allocations: 92.27 kB / 20.96 MB, free: 3.445 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.00167/0.00167, allocations: 152.9 kB / 24.26 MB, free: 148 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.439/1.439, allocations: 177 MB / 204.4 MB, free: 5.605 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.924e-06/1.924e-06, allocations: 0 / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.787e-05/2.98e-05, allocations: 2.312 kB / 272.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005661/0.005691, allocations: 3.718 MB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.008005, allocations: 1.036 MB / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.008227, allocations: 8 kB / 277 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000258/0.008485, allocations: 87.08 kB / 277.1 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003779/0.008863, allocations: 202.2 kB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.009443, allocations: 235.5 kB / 277.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009326/0.01038, allocations: 0.8482 MB / 278.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.01065, allocations: 113.5 kB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006824/0.01133, allocations: 475 kB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004274/0.01176, allocations: 279.3 kB / 279.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.01188, allocations: 80 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.01204, allocations: 95.98 kB / 279.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.0122, allocations: 159.4 kB / 279.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003008/0.0125, allocations: 239.4 kB / 279.7 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001048/0.01354, allocations: 0.9037 MB / 280.6 MB, free: 9.293 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.01355, allocations: 4 kB / 280.6 MB, free: 9.289 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01355, allocations: 4 kB / 280.7 MB, free: 9.285 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.01356, allocations: 0 / 280.7 MB, free: 9.285 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.003021/0.01658, allocations: 0.9778 MB / 281.6 MB, free: 8.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.01663, allocations: 11.98 kB / 281.6 MB, free: 8.258 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.01694, allocations: 100.5 kB / 281.7 MB, free: 8.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006965/0.01764, allocations: 371.7 kB / 282.1 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.586e-05/0.01769, allocations: 29.38 kB / 282.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.703e-05/0.01777, allocations: 36.38 kB / 282.2 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.01936, allocations: 0.6246 MB / 282.8 MB, free: 7.051 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.01938, allocations: 4.188 kB / 282.8 MB, free: 7.047 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.044e-05/0.01944, allocations: 16.38 kB / 282.8 MB, free: 7.031 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.01945, allocations: 11.94 kB / 282.8 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.02148, allocations: 0.6362 MB / 283.5 MB, free: 6.383 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00424/0.02572, allocations: 1.925 MB / 285.4 MB, free: 4.379 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004119/0.02984, allocations: 0.8265 MB / 286.2 MB, free: 3.547 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/0.03095, allocations: 369.3 kB / 286.6 MB, free: 3.184 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.522e-05/0.031, allocations: 8.328 kB / 286.6 MB, free: 3.176 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.03226, allocations: 464.3 kB / 287 MB, free: 2.699 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.224e-06/0.03227, allocations: 4 kB / 287 MB, free: 2.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.01534/0.0476, allocations: 2.323 MB / 289.4 MB, free: 368 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.235e-05/0.0477, allocations: 85.05 kB / 289.4 MB, free: 264 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1151/0.1628, allocations: 393.3 kB / 289.8 MB, free: 29.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.1629, allocations: 34.64 kB / 289.9 MB, free: 29.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.1631, allocations: 237.2 kB / 290.1 MB, free: 28.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.1632, allocations: 136.6 kB / 290.2 MB, free: 28.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.1634, allocations: 73.83 kB / 290.3 MB, free: 28.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.843e-05/0.1635, allocations: 354.3 kB / 290.6 MB, free: 28.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000978/0.1645, allocations: 327.7 kB / 291 MB, free: 28.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009119/0.1654, allocations: 393.2 kB / 291.3 MB, free: 28.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.1671, allocations: 0.5992 MB / 291.9 MB, free: 28.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.1671, allocations: 5.438 kB / 292 MB, free: 28.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003597/0.1707, allocations: 1.034 MB / 293 MB, free: 27.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.984e-05/0.1707, allocations: 37.19 kB / 293 MB, free: 27.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1707, allocations: 0 / 293 MB, free: 27.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/0.172, allocations: 437.8 kB / 293.4 MB, free: 27.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004931/0.1725, allocations: 93.84 kB / 293.5 MB, free: 27.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008075/0.1806, allocations: 3.615 MB / 297.2 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007367/0.1813, allocations: 95.55 kB / 297.2 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.383e-05/0.1814, allocations: 10.44 kB / 297.3 MB, free: 25.54 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.0002225/0.1816, allocations: 179.9 kB / 297.4 MB, free: 25.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1817, allocations: 62.03 kB / 297.5 MB, free: 25.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.1818, allocations: 56.41 kB / 297.5 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.1818, allocations: 4.25 kB / 297.6 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1818, allocations: 0 / 297.6 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1818, allocations: 3.438 kB / 297.6 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/0.1823, allocations: 438.2 kB / 298 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1823, allocations: 2.578 kB / 298 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004737/0.1828, allocations: 80.8 kB / 298.1 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.184, allocations: 437.3 kB / 298.5 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.184, allocations: 8.344 kB / 298.5 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007822/0.1918, allocations: 3.62 MB / 302.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1919, allocations: 0 / 302.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005644/0.1975, allocations: 1.503 MB / 303.6 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.1978, allocations: 112 kB / 303.7 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.245e-05/0.1979, allocations: 6.75 kB / 303.7 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/0.1984, allocations: 76.97 kB / 303.8 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.1986, allocations: 51.97 kB / 303.9 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/0.1986, allocations: 12.16 kB / 303.9 MB, free: 22.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002902/0.1989, allocations: 280 kB / 304.2 MB, free: 21.87 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1989, allocations: 4 kB / 304.2 MB, free: 21.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006535/0.1996, allocations: 180.7 kB / 304.3 MB, free: 21.84 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.0001347/0.1997, allocations: 112.8 kB / 304.4 MB, free: 21.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.2021, allocations: 0.9685 MB / 305.4 MB, free: 21.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2021, allocations: 0 / 305.4 MB, free: 21.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.2036, allocations: 0.5781 MB / 306 MB, free: 20.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.204, allocations: 96.25 kB / 306.1 MB, free: 20.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.2067, allocations: 1.196 MB / 307.3 MB, free: 19.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001544/0.2069, allocations: 243.4 kB / 307.5 MB, free: 19.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001881/0.2071, allocations: 39.31 kB / 307.6 MB, free: 19.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.2072, allocations: 32.5 kB / 307.6 MB, free: 19.1 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2072, allocations: 3.938 kB / 307.6 MB, free: 19.1 MB / 266.7 MB Notification: Performance of Templates: time 0.01799/0.2252, allocations: 13.39 MB / 321 MB, free: 5.852 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=480 -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/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.576158220996149]