Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.001962/0.001962, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002339/0.002339, allocations: 153.4 kB / 24.26 MB, free: 180 kB / 18.57 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 1.435/1.435, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.656e-05/2.823e-05, allocations: 2.312 kB / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.008195/0.008223, allocations: 3.67 MB / 271 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002948/0.01117, allocations: 0.9854 MB / 272 MB, free: 2.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002993/0.01147, allocations: 7.938 kB / 272 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003681/0.01184, allocations: 91.12 kB / 272.1 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000576/0.01241, allocations: 190.3 kB / 272.3 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007803/0.01319, allocations: 227.5 kB / 272.5 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.01461, allocations: 0.8364 MB / 273.3 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003586/0.01497, allocations: 113.5 kB / 273.4 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008979/0.01587, allocations: 459 kB / 273.9 MB, free: 116 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006687/0.01653, allocations: 279.2 kB / 274.2 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001829/0.01672, allocations: 84 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.01691, allocations: 80 kB / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002449/0.01715, allocations: 163.5 kB / 274.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004576/0.01761, allocations: 235.4 kB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.01937, allocations: 0.8881 MB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.01938, allocations: 0 / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.01938, allocations: 4 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.01939, allocations: 3.938 kB / 275.6 MB, free: 14.39 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.004321/0.02371, allocations: 0.9545 MB / 276.6 MB, free: 13.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.262e-05/0.02377, allocations: 12.92 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.02408, allocations: 88.56 kB / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009761/0.02506, allocations: 367.7 kB / 277 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.251e-05/0.02512, allocations: 29.38 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.02525, allocations: 40.38 kB / 277.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002485/0.02774, allocations: 0.6168 MB / 277.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.02776, allocations: 192 / 277.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-05/0.02784, allocations: 16.38 kB / 277.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.02786, allocations: 11.94 kB / 277.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003176/0.03104, allocations: 0.6245 MB / 278.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005894/0.03693, allocations: 1.898 MB / 280.2 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006307/0.04324, allocations: 0.8003 MB / 281.1 MB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.04503, allocations: 372.5 kB / 281.4 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.338e-05/0.04508, allocations: 4.328 kB / 281.4 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001857/0.04694, allocations: 456.3 kB / 281.9 MB, free: 7.918 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.575e-06/0.04694, allocations: 0 / 281.9 MB, free: 7.918 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.02306/0.07001, allocations: 2.223 MB / 284.1 MB, free: 5.684 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.07012, allocations: 81.11 kB / 284.2 MB, free: 5.586 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000878/0.071, allocations: 389.6 kB / 284.5 MB, free: 5.199 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.07112, allocations: 37.69 kB / 284.6 MB, free: 5.156 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003369/0.07146, allocations: 236.8 kB / 284.8 MB, free: 4.922 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.0717, allocations: 134.9 kB / 284.9 MB, free: 4.789 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000291/0.07199, allocations: 74.02 kB / 285 MB, free: 4.707 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003101/0.0723, allocations: 350.8 kB / 285.4 MB, free: 4.355 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.07392, allocations: 318.4 kB / 285.7 MB, free: 4.039 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.07503, allocations: 393.6 kB / 286.1 MB, free: 3.633 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002548/0.07758, allocations: 0.5798 MB / 286.6 MB, free: 3.039 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.07759, allocations: 7.875 kB / 286.6 MB, free: 3.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004152/0.08174, allocations: 1.015 MB / 287.7 MB, free: 1.996 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.616e-05/0.08178, allocations: 29.7 kB / 287.7 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.08179, allocations: 0 / 287.7 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.08316, allocations: 400 kB / 288.1 MB, free: 1.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005013/0.08366, allocations: 87.92 kB / 288.2 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.124/0.2077, allocations: 3.479 MB / 291.6 MB, free: 31.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007175/0.2084, allocations: 87.36 kB / 291.7 MB, free: 31.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.634e-05/0.2085, allocations: 15.55 kB / 291.7 MB, free: 31.99 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.0002183/0.2087, allocations: 177.6 kB / 291.9 MB, free: 31.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.2088, allocations: 58.53 kB / 292 MB, free: 31.87 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.2089, allocations: 61.34 kB / 292 MB, free: 31.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2089, allocations: 5.125 kB / 292 MB, free: 31.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2089, allocations: 1.25 kB / 292 MB, free: 31.83 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2089, allocations: 1.734 kB / 292 MB, free: 31.83 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005107/0.2094, allocations: 429.9 kB / 292.5 MB, free: 31.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2094, allocations: 0 / 292.5 MB, free: 31.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004864/0.2099, allocations: 87.84 kB / 292.5 MB, free: 31.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.2111, allocations: 393.7 kB / 292.9 MB, free: 31.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/0.2111, allocations: 9.109 kB / 292.9 MB, free: 31.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009053/0.2202, allocations: 3.486 MB / 296.4 MB, free: 29.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.2202, allocations: 0 / 296.4 MB, free: 29.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009173/0.2293, allocations: 1.469 MB / 297.9 MB, free: 28.88 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004227/0.2298, allocations: 98.45 kB / 298 MB, free: 28.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.2299, allocations: 7.328 kB / 298 MB, free: 28.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008288/0.2307, allocations: 74.64 kB / 298.1 MB, free: 28.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.231, allocations: 51.97 kB / 298.1 MB, free: 28.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-05/0.231, allocations: 14.03 kB / 298.1 MB, free: 28.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004374/0.2315, allocations: 281.7 kB / 298.4 MB, free: 28.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2315, allocations: 0 / 298.4 MB, free: 28.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001035/0.2325, allocations: 181.4 kB / 298.6 MB, free: 28.62 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.0001665/0.2327, allocations: 106.3 kB / 298.7 MB, free: 28.53 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.004035/0.2367, allocations: 0.931 MB / 299.6 MB, free: 28.09 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.2367, allocations: 0 / 299.6 MB, free: 28.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002146/0.2388, allocations: 0.5494 MB / 300.2 MB, free: 27.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007833/0.2396, allocations: 94.64 kB / 300.3 MB, free: 27.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004218/0.2439, allocations: 1.134 MB / 301.4 MB, free: 27.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.2441, allocations: 235.1 kB / 301.6 MB, free: 27.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003185/0.2444, allocations: 40.88 kB / 301.7 MB, free: 27.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.2446, allocations: 38.39 kB / 301.7 MB, free: 27.09 MB / 266.7 MB Notification: Performance of SimCode: time 1.543e-06/0.2446, allocations: 0 / 301.7 MB, free: 27.09 MB / 266.7 MB Notification: Performance of Templates: time 0.02407/0.2687, allocations: 13.15 MB / 314.9 MB, free: 15.98 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.638451887993142]