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.001701/0.001701, allocations: 74.66 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.002017/0.002017, allocations: 151.7 kB / 24.49 MB, free: 3.723 MB / 14.72 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.448/1.448, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 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 0.001571/0.001571, allocations: 50.86 kB / 319.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08797/0.08954, allocations: 52.16 MB / 371.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005277/0.09482, allocations: 3.681 MB / 375.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.09673, allocations: 0.9816 MB / 376.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002159/0.09694, allocations: 11.94 kB / 376.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002485/0.09719, allocations: 83.14 kB / 376.3 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003358/0.09753, allocations: 194.4 kB / 376.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004892/0.09802, allocations: 219.6 kB / 376.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008966/0.09891, allocations: 0.8017 MB / 377.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002619/0.09918, allocations: 121.5 kB / 377.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004032/0.09958, allocations: 311 kB / 378 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004629/0.1, allocations: 318.7 kB / 378.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.1002, allocations: 87.94 kB / 378.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.1003, allocations: 80 kB / 378.4 MB, free: 440 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.1004, allocations: 163.4 kB / 378.6 MB, free: 276 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002946/0.1007, allocations: 266.9 kB / 378.9 MB, free: 8 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008859/0.1016, allocations: 0.8564 MB / 379.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1016, allocations: 0 / 379.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1016, allocations: 0 / 379.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1016, allocations: 0 / 379.7 MB, free: 15.14 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.002743/0.1044, allocations: 0.9702 MB / 380.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1044, allocations: 8.922 kB / 380.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.1045, allocations: 64.56 kB / 380.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006324/0.1052, allocations: 356.5 kB / 381.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.1052, allocations: 29.38 kB / 381.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.734e-05/0.1053, allocations: 32.38 kB / 381.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.1068, allocations: 0.6244 MB / 381.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.1068, allocations: 0 / 381.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.143e-05/0.1069, allocations: 16 kB / 381.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.1069, allocations: 12 kB / 381.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.1089, allocations: 0.6206 MB / 382.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.1126, allocations: 1.89 MB / 384.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003881/0.1165, allocations: 0.8003 MB / 385.1 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.1175, allocations: 369.3 kB / 385.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.772e-05/0.1176, allocations: 12.27 kB / 385.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.1187, allocations: 456.3 kB / 385.9 MB, free: 8.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.073e-06/0.1187, allocations: 0 / 385.9 MB, free: 8.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01417/0.1329, allocations: 2.195 MB / 388.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.133, allocations: 89.11 kB / 388.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/0.1335, allocations: 393.6 kB / 388.6 MB, free: 6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/0.1336, allocations: 29.7 kB / 388.6 MB, free: 5.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.1338, allocations: 240.8 kB / 388.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.1339, allocations: 138.8 kB / 389 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.1341, allocations: 81.95 kB / 389.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.1343, allocations: 354.7 kB / 389.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009805/0.1353, allocations: 318.4 kB / 389.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.1363, allocations: 397.6 kB / 390.1 MB, free: 4.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.1381, allocations: 0.572 MB / 390.7 MB, free: 3.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1381, allocations: 0 / 390.7 MB, free: 3.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003636/0.1418, allocations: 1.004 MB / 391.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.034e-05/0.1418, allocations: 29.7 kB / 391.7 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1418, allocations: 3.984 kB / 391.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.1431, allocations: 392.5 kB / 392.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004986/0.1436, allocations: 83.86 kB / 392.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008328/0.1519, allocations: 3.476 MB / 395.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006396/0.1525, allocations: 87.84 kB / 395.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.93e-05/0.1526, allocations: 19.98 kB / 395.8 MB, free: 14.62 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.0002494/0.1528, allocations: 169.7 kB / 396 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.499e-05/0.1529, allocations: 43.72 kB / 396 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.153, allocations: 60.38 kB / 396.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.153, allocations: 4 kB / 396.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.153, allocations: 0 / 396.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1531, allocations: 3.984 kB / 396.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005943/0.1536, allocations: 429.3 kB / 396.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.1537, allocations: 7.922 kB / 396.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004969/0.1541, allocations: 91.8 kB / 396.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.1553, allocations: 388.6 kB / 397 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.259e-05/0.1553, allocations: 15.98 kB / 397 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008421/0.1638, allocations: 3.456 MB / 400.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1638, allocations: 0 / 400.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00609/0.1698, allocations: 1.454 MB / 401.9 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000282/0.1701, allocations: 103.6 kB / 402 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.176e-05/0.1702, allocations: 4 kB / 402 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005994/0.1708, allocations: 67.92 kB / 402.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.171, allocations: 51.91 kB / 402.1 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.171, allocations: 15.98 kB / 402.1 MB, free: 8.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000377/0.1714, allocations: 279.2 kB / 402.4 MB, free: 7.848 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1714, allocations: 3.938 kB / 402.4 MB, free: 7.844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000689/0.1721, allocations: 183.7 kB / 402.6 MB, free: 7.664 MB / 366.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.0001776/0.1723, allocations: 114.6 kB / 402.7 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.175, allocations: 0.9245 MB / 403.6 MB, free: 6.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.175, allocations: 4.062 kB / 403.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.1766, allocations: 0.5413 MB / 404.2 MB, free: 6.031 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004572/0.1771, allocations: 65.47 kB / 404.2 MB, free: 5.969 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.1804, allocations: 1.222 MB / 405.4 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.1807, allocations: 232.8 kB / 405.7 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001933/0.1809, allocations: 43.27 kB / 405.7 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.181, allocations: 28.5 kB / 405.7 MB, free: 4.402 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.181, allocations: 0 / 405.7 MB, free: 4.402 MB / 366.1 MB Notification: Performance of Templates: time 0.02239/0.2034, allocations: 13.2 MB / 418.9 MB, free: 7.309 MB / 382.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/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.568007113062777]