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.001803/0.001803, allocations: 119.4 kB / 18.41 MB, free: 4.656 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.002118/0.002118, allocations: 192.3 kB / 21.35 MB, free: 1.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.436/1.436, allocations: 222.9 MB / 247 MB, free: 4.18 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.001529/0.001529, allocations: 55.92 kB / 358.7 MB, free: 8.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08877/0.09031, allocations: 49.44 MB / 408.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005237/0.09558, allocations: 4.042 MB / 412.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.09728, allocations: 1.017 MB / 413.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.09747, allocations: 11.94 kB / 413.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.0977, allocations: 87.2 kB / 413.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000305/0.09802, allocations: 178.4 kB / 413.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004345/0.09846, allocations: 215.7 kB / 413.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000833/0.0993, allocations: 0.8095 MB / 414.5 MB, free: 424 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.0996, allocations: 164.9 kB / 414.6 MB, free: 256 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003884/0.09999, allocations: 311 kB / 414.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004486/0.1005, allocations: 358.5 kB / 415.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.1006, allocations: 80 kB / 415.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.1007, allocations: 84 kB / 415.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.1009, allocations: 151.5 kB / 415.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003347/0.1012, allocations: 342.5 kB / 415.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008799/0.1021, allocations: 0.8446 MB / 416.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1021, allocations: 0 / 416.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1021, allocations: 0 / 416.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.1021, allocations: 4 kB / 416.8 MB, free: 14.1 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.00264/0.1048, allocations: 1.034 MB / 417.8 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.1048, allocations: 11.97 kB / 417.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.1049, allocations: 64.56 kB / 417.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006191/0.1056, allocations: 422.3 kB / 418.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/0.1056, allocations: 33.31 kB / 418.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.028e-05/0.1057, allocations: 36.38 kB / 418.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.1073, allocations: 0.5993 MB / 419 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.1073, allocations: 3.984 kB / 419 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.32e-05/0.1073, allocations: 16 kB / 419 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1074, allocations: 8 kB / 419 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00206/0.1094, allocations: 0.6206 MB / 419.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.1133, allocations: 2.145 MB / 421.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003981/0.1173, allocations: 0.8393 MB / 422.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.1184, allocations: 398.5 kB / 423 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.1185, allocations: 8.328 kB / 423 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.1197, allocations: 426.5 kB / 423.4 MB, free: 7.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.964e-06/0.1197, allocations: 0 / 423.4 MB, free: 7.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01471/0.1344, allocations: 2.289 MB / 425.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.928e-05/0.1345, allocations: 85.09 kB / 425.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005229/0.1351, allocations: 409.9 kB / 426.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.867e-05/0.1351, allocations: 33.7 kB / 426.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/0.1353, allocations: 236.9 kB / 426.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.1355, allocations: 138.9 kB / 426.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.1357, allocations: 70.05 kB / 426.6 MB, free: 3.891 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1358, allocations: 358.7 kB / 427 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.1369, allocations: 288.6 kB / 427.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.1379, allocations: 334.1 kB / 427.6 MB, free: 2.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001929/0.1399, allocations: 0.5834 MB / 428.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1399, allocations: 0 / 428.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003779/0.1437, allocations: 0.9786 MB / 429.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.1437, allocations: 29.7 kB / 429.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.1437, allocations: 7.984 kB / 429.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.145, allocations: 396.5 kB / 429.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005194/0.1456, allocations: 83.92 kB / 429.7 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1774/0.323, allocations: 3.665 MB / 433.3 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007082/0.3237, allocations: 93.59 kB / 433.4 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.3238, allocations: 17.78 kB / 433.4 MB, free: 22.26 MB / 350.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.0002078/0.324, allocations: 172.6 kB / 433.6 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.008e-05/0.324, allocations: 46.97 kB / 433.7 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.3242, allocations: 61.02 kB / 433.7 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3242, allocations: 10.12 kB / 433.7 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3242, allocations: 0 / 433.7 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3242, allocations: 5.672 kB / 433.7 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.3248, allocations: 0.6107 MB / 434.3 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3248, allocations: 0 / 434.3 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004776/0.3253, allocations: 86.16 kB / 434.4 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001122/0.3265, allocations: 396.6 kB / 434.8 MB, free: 21.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.127e-05/0.3265, allocations: 8.734 kB / 434.8 MB, free: 21.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00797/0.3345, allocations: 3.663 MB / 438.5 MB, free: 20.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.3345, allocations: 1.703 kB / 438.5 MB, free: 20.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00605/0.3406, allocations: 1.459 MB / 440 MB, free: 20.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002695/0.3409, allocations: 188.5 kB / 440.1 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.646e-05/0.341, allocations: 9.562 kB / 440.1 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006121/0.3416, allocations: 70.69 kB / 440.2 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.3418, allocations: 51.7 kB / 440.3 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.95e-05/0.3418, allocations: 10.03 kB / 440.3 MB, free: 20.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003305/0.3421, allocations: 290.9 kB / 440.6 MB, free: 20.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3422, allocations: 3.469 kB / 440.6 MB, free: 20.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006361/0.3428, allocations: 178.8 kB / 440.7 MB, free: 20.07 MB / 350.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.0001374/0.3429, allocations: 118.8 kB / 440.9 MB, free: 19.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002765/0.3457, allocations: 0.9164 MB / 441.8 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.3457, allocations: 1.375 kB / 441.8 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.3473, allocations: 0.5697 MB / 442.3 MB, free: 19.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/0.3478, allocations: 82.92 kB / 442.4 MB, free: 19.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003085/0.3509, allocations: 1.232 MB / 443.7 MB, free: 19.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3512, allocations: 0.8339 MB / 444.5 MB, free: 18.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.3514, allocations: 33.12 kB / 444.5 MB, free: 18.37 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3514, allocations: 0 / 444.5 MB, free: 18.37 MB / 350.1 MB Notification: Performance of Templates: time 0.01357/0.3649, allocations: 9.916 MB / 454.4 MB, free: 14.78 MB / 350.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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.405347898020409]