Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.001406/0.001406, allocations: 123.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.001601/0.001601, allocations: 208.2 kB / 20.75 MB, free: 2.336 MB / 14.72 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.616/1.616, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 47.92 kB / 373.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09884/0.1004, allocations: 53.33 MB / 426.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004566/0.105, allocations: 2.958 MB / 429.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.1066, allocations: 0.7946 MB / 430.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.1067, allocations: 4 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.1069, allocations: 51.44 kB / 430.6 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.1072, allocations: 107.1 kB / 430.7 MB, free: 348 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004147/0.1076, allocations: 115.8 kB / 430.8 MB, free: 232 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2406/0.3482, allocations: 401.1 kB / 431.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004232/0.3486, allocations: 88.5 kB / 431.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005352/0.3492, allocations: 167.4 kB / 431.5 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.3494, allocations: 166.8 kB / 431.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-05/0.3495, allocations: 36.97 kB / 431.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001381/0.3496, allocations: 38.62 kB / 431.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.123e-05/0.3497, allocations: 78.53 kB / 431.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002085/0.3499, allocations: 183.8 kB / 432 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005975/0.3505, allocations: 439.7 kB / 432.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3505, allocations: 0.6562 kB / 432.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3505, allocations: 0.5625 kB / 432.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.3505, allocations: 4.375 kB / 432.4 MB, free: 7.977 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001102/0.3516, allocations: 0.6223 MB / 433 MB, free: 7.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3517, allocations: 9.406 kB / 433 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/0.3519, allocations: 48.88 kB / 433.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.3522, allocations: 296.9 kB / 433.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.3522, allocations: 17.16 kB / 433.4 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.3523, allocations: 28 kB / 433.4 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.3528, allocations: 289.7 kB / 433.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.3528, allocations: 6.219 kB / 433.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.3528, allocations: 7.938 kB / 433.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.3528, allocations: 8.406 kB / 433.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004042/0.3532, allocations: 200.1 kB / 433.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.3549, allocations: 1.149 MB / 435.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/0.3554, allocations: 202 kB / 435.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.3557, allocations: 125.7 kB / 435.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.3558, allocations: 1.188 kB / 435.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/0.3561, allocations: 173.7 kB / 435.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.866e-06/0.3561, allocations: 0 / 435.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001591/0.3577, allocations: 0.5114 MB / 436.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.3577, allocations: 136.4 kB / 436.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.358, allocations: 245.6 kB / 436.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.3581, allocations: 32.17 kB / 436.5 MB, free: 6.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.3582, allocations: 172.8 kB / 436.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.424e-05/0.3583, allocations: 76.19 kB / 436.7 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.602e-05/0.3583, allocations: 50.25 kB / 436.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.616e-05/0.3584, allocations: 335.2 kB / 437.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.3586, allocations: 69.64 kB / 437.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.3588, allocations: 133.5 kB / 437.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003029/0.3591, allocations: 165.5 kB / 437.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3591, allocations: 0 / 437.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005606/0.3597, allocations: 292.5 kB / 437.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.3597, allocations: 6.656 kB / 437.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.3597, allocations: 1.188 kB / 437.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004089/0.3601, allocations: 97.98 kB / 437.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.3602, allocations: 26.86 kB / 437.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/0.3624, allocations: 2.142 MB / 440 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.3627, allocations: 33.12 kB / 440 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.3627, allocations: 5.844 kB / 440.1 MB, free: 3.422 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001802/0.3629, allocations: 145.8 kB / 440.2 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.083e-05/0.363, allocations: 34.62 kB / 440.2 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.918e-05/0.363, allocations: 30.48 kB / 440.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.363, allocations: 3.5 kB / 440.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.363, allocations: 0.7031 kB / 440.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.363, allocations: 2 kB / 440.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009591/0.364, allocations: 0.7702 MB / 441 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.364, allocations: 3.25 kB / 441 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.3641, allocations: 21.53 kB / 441.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002858/0.3644, allocations: 92.23 kB / 441.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.3644, allocations: 9.812 kB / 441.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001965/0.3664, allocations: 2.137 MB / 443.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3664, allocations: 4.062 kB / 443.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006867/0.3671, allocations: 448.1 kB / 443.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.3672, allocations: 134.4 kB / 443.9 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.3672, allocations: 4.219 kB / 443.9 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.3674, allocations: 22.61 kB / 443.9 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.3676, allocations: 34.11 kB / 443.9 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.3676, allocations: 6.156 kB / 443.9 MB, free: 388 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002014/0.3678, allocations: 179.2 kB / 444.1 MB, free: 280 kB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3678, allocations: 0 / 444.1 MB, free: 280 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006054/0.3684, allocations: 89.36 kB / 444.2 MB, free: 264 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001947/0.3686, allocations: 107.5 kB / 444.3 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008335/0.3694, allocations: 354.8 kB / 444.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3694, allocations: 0 / 444.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005815/0.37, allocations: 252.3 kB / 444.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004965/0.3705, allocations: 70.62 kB / 445 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.372, allocations: 0.6024 MB / 445.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005833/0.3726, allocations: 0.7641 MB / 446.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.3727, allocations: 25.12 kB / 446.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.02e-05/0.3728, allocations: 18.94 kB / 446.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3728, allocations: 0 / 446.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of Templates: time 0.01451/0.3873, allocations: 4.96 MB / 451.3 MB, free: 14.37 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.069758351892233]