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.002356/0.002356, allocations: 87.67 kB / 20.96 MB, free: 3.441 MB / 18.57 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.002576/0.002576, allocations: 161.3 kB / 24.27 MB, free: 136 kB / 18.57 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.559/1.559, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 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 1.623e-06/1.623e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.197e-05/3.359e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006427/0.00646, allocations: 3.991 MB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002224/0.008684, allocations: 1.048 MB / 277.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002314/0.008915, allocations: 15.94 kB / 277.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.009163, allocations: 91.12 kB / 277.5 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003717/0.009535, allocations: 190.3 kB / 277.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.01014, allocations: 231.6 kB / 277.9 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.01116, allocations: 0.8481 MB / 278.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.01142, allocations: 113.5 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007049/0.01212, allocations: 475 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005928/0.01272, allocations: 287.3 kB / 279.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.01285, allocations: 84 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.01303, allocations: 84 kB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.01321, allocations: 171.4 kB / 279.9 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003177/0.01352, allocations: 243.4 kB / 280.2 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.01468, allocations: 0.9076 MB / 281.1 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.01468, allocations: 0 / 281.1 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.01468, allocations: 0 / 281.1 MB, free: 9.039 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.639e-06/0.01469, allocations: 0 / 281.1 MB, free: 9.039 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.002742/0.01743, allocations: 1.074 MB / 282.1 MB, free: 7.922 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.01748, allocations: 8.031 kB / 282.1 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003337/0.01781, allocations: 96.55 kB / 282.2 MB, free: 7.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000655/0.01847, allocations: 370.5 kB / 282.6 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.523e-05/0.01851, allocations: 29.38 kB / 282.6 MB, free: 7.402 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.01862, allocations: 36.38 kB / 282.7 MB, free: 7.367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.02002, allocations: 0.6178 MB / 283.3 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.02004, allocations: 192 / 283.3 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/0.02009, allocations: 12.38 kB / 283.3 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.02011, allocations: 11.94 kB / 283.3 MB, free: 6.691 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.02171, allocations: 0.5504 MB / 283.9 MB, free: 6.141 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004158/0.02587, allocations: 2.268 MB / 286.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003668/0.02954, allocations: 0.715 MB / 286.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008886/0.03043, allocations: 328.2 kB / 287.2 MB, free: 2.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.03048, allocations: 12.31 kB / 287.2 MB, free: 2.719 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001053/0.03153, allocations: 439.7 kB / 287.6 MB, free: 2.262 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.743e-06/0.03153, allocations: 0 / 287.6 MB, free: 2.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.01425/0.04579, allocations: 1.971 MB / 289.6 MB, free: 284 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.521e-05/0.04588, allocations: 81.11 kB / 289.7 MB, free: 184 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1426/0.1884, allocations: 0.5085 MB / 290.2 MB, free: 28.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001657/0.1886, allocations: 32.7 kB / 290.2 MB, free: 28.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.1888, allocations: 304.1 kB / 290.5 MB, free: 28.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.189, allocations: 153.4 kB / 290.6 MB, free: 28.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.1892, allocations: 88.22 kB / 290.7 MB, free: 28.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1893, allocations: 0.5558 MB / 291.3 MB, free: 28.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008092/0.1901, allocations: 276 kB / 291.6 MB, free: 28.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007766/0.1909, allocations: 369.4 kB / 291.9 MB, free: 28.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.1923, allocations: 0.5187 MB / 292.4 MB, free: 27.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.112e-05/0.1923, allocations: 5 kB / 292.4 MB, free: 27.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003372/0.1957, allocations: 0.9148 MB / 293.4 MB, free: 27.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.1958, allocations: 32.47 kB / 293.4 MB, free: 27.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1958, allocations: 1.891 kB / 293.4 MB, free: 27.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.1969, allocations: 404.3 kB / 293.8 MB, free: 27.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004074/0.1974, allocations: 71.88 kB / 293.9 MB, free: 27.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007703/0.2051, allocations: 4.078 MB / 297.9 MB, free: 24.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006278/0.2057, allocations: 69.36 kB / 298 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.78e-05/0.2057, allocations: 15.42 kB / 298 MB, free: 24.56 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.0002295/0.206, allocations: 214.2 kB / 298.2 MB, free: 24.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.2061, allocations: 61 kB / 298.3 MB, free: 24.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.2062, allocations: 57.06 kB / 298.3 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.2062, allocations: 5.297 kB / 298.3 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2062, allocations: 0 / 298.3 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.2062, allocations: 6.328 kB / 298.3 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005972/0.2068, allocations: 0.5116 MB / 298.9 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2068, allocations: 0 / 298.9 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004144/0.2072, allocations: 70.97 kB / 298.9 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.2083, allocations: 397.6 kB / 299.3 MB, free: 23.87 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.463e-05/0.2084, allocations: 8.578 kB / 299.3 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007369/0.2157, allocations: 4.073 MB / 303.4 MB, free: 20.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2157, allocations: 1 kB / 303.4 MB, free: 20.99 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004997/0.2207, allocations: 1.324 MB / 304.7 MB, free: 20.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.221, allocations: 103.7 kB / 304.8 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.914e-05/0.2211, allocations: 17.44 kB / 304.8 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.2215, allocations: 44.83 kB / 304.9 MB, free: 20.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.2217, allocations: 56.8 kB / 304.9 MB, free: 20.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/0.2218, allocations: 9.859 kB / 305 MB, free: 20.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003543/0.2221, allocations: 351.8 kB / 305.3 MB, free: 20.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2221, allocations: 4 kB / 305.3 MB, free: 20.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006495/0.2228, allocations: 177.3 kB / 305.5 MB, free: 20.2 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.0001454/0.2229, allocations: 109.7 kB / 305.6 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.225, allocations: 0.9585 MB / 306.5 MB, free: 19.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.225, allocations: 0 / 306.5 MB, free: 19.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.2262, allocations: 0.6095 MB / 307.1 MB, free: 19.28 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.2266, allocations: 85.52 kB / 307.2 MB, free: 19.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.2291, allocations: 1.149 MB / 308.4 MB, free: 18.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.2292, allocations: 236.1 kB / 308.6 MB, free: 18.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.2294, allocations: 43.3 kB / 308.7 MB, free: 18.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.2295, allocations: 32.5 kB / 308.7 MB, free: 18 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2295, allocations: 4 kB / 308.7 MB, free: 18 MB / 266.7 MB Notification: Performance of Templates: time 0.01634/0.2459, allocations: 13.96 MB / 322.6 MB, free: 4.203 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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_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: 5.939676345908083]