Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.001084/0.001084, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001044/0.001044, allocations: 145.1 kB / 24.54 MB, free: 32 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.02/1.02, allocations: 173.3 MB / 201.1 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.73e-05/2.911e-05, allocations: 2.312 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004784/0.004813, allocations: 2.94 MB / 270.9 MB, free: 3.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001674/0.006487, allocations: 0.7206 MB / 271.7 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002161/0.006703, allocations: 4 kB / 271.7 MB, free: 2.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.006897, allocations: 51.5 kB / 271.7 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.007164, allocations: 107 kB / 271.8 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.00756, allocations: 107.7 kB / 271.9 MB, free: 2.488 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000508/0.008068, allocations: 422.1 kB / 272.3 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.008314, allocations: 91.61 kB / 272.4 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003867/0.008701, allocations: 235.4 kB / 272.7 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.008943, allocations: 123.7 kB / 272.8 MB, free: 1.629 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.559e-05/0.009009, allocations: 36 kB / 272.8 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.85e-05/0.009067, allocations: 40 kB / 272.8 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.224e-05/0.00914, allocations: 79.67 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.009288, allocations: 127.7 kB / 273.1 MB, free: 1.352 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004106/0.009698, allocations: 263.1 kB / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.009703, allocations: 0 / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.009704, allocations: 0 / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.009713, allocations: 3.938 kB / 273.3 MB, free: 1.09 MB / 250.7 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.001042/0.01075, allocations: 0.6488 MB / 274 MB, free: 412 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.0108, allocations: 12.92 kB / 274 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.01092, allocations: 60.69 kB / 274 MB, free: 340 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.01128, allocations: 224.1 kB / 274.3 MB, free: 88 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.0113, allocations: 16.88 kB / 274.3 MB, free: 72 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.161e-05/0.01137, allocations: 24.38 kB / 274.3 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005312/0.0119, allocations: 300.7 kB / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.01191, allocations: 192 / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.01194, allocations: 12.38 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.01196, allocations: 7.938 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002866/0.01224, allocations: 106.9 kB / 274.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.01391, allocations: 1.084 MB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.01435, allocations: 167.2 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002346/0.01459, allocations: 95.58 kB / 276.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.01462, allocations: 4 kB / 276.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.01487, allocations: 209.8 kB / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.873e-06/0.01487, allocations: 0 / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001028/0.0159, allocations: 356.8 kB / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.01597, allocations: 136.5 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.0162, allocations: 268.3 kB / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.01623, allocations: 29.73 kB / 277 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.01636, allocations: 219.4 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.877e-05/0.01643, allocations: 83.36 kB / 277.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.584e-05/0.01651, allocations: 51.36 kB / 277.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.01666, allocations: 0.4962 MB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.799e-05/0.01675, allocations: 43.91 kB / 277.9 MB, free: 12.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.01689, allocations: 153.5 kB / 278.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002025/0.0171, allocations: 114.7 kB / 278.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.0171, allocations: 0 / 278.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003703/0.01747, allocations: 221.6 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.01749, allocations: 4 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.0175, allocations: 4 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002866/0.01778, allocations: 71.56 kB / 278.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.01789, allocations: 27.98 kB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/0.01962, allocations: 2.364 MB / 280.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.01973, allocations: 27.83 kB / 280.9 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.01974, allocations: 11.98 kB / 280.9 MB, free: 8.992 MB / 266.7 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.0001035/0.01984, allocations: 172.6 kB / 281.1 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/0.01988, allocations: 35.8 kB / 281.1 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.104e-05/0.01991, allocations: 34.27 kB / 281.1 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.01991, allocations: 0 / 281.1 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.01991, allocations: 4 kB / 281.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.01992, allocations: 3.938 kB / 281.1 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005707/0.02049, allocations: 0.6788 MB / 281.8 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.02049, allocations: 0 / 281.8 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.437e-05/0.02056, allocations: 15.98 kB / 281.8 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001553/0.02071, allocations: 71.67 kB / 281.9 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.02073, allocations: 7.984 kB / 281.9 MB, free: 7.914 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.02211, allocations: 2.36 MB / 284.3 MB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.02211, allocations: 4.031 kB / 284.3 MB, free: 5.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004392/0.02255, allocations: 395.6 kB / 284.7 MB, free: 5.016 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.346e-05/0.02261, allocations: 47.77 kB / 284.7 MB, free: 4.969 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.02263, allocations: 8 kB / 284.7 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.18e-05/0.02272, allocations: 15.98 kB / 284.7 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.896e-05/0.0228, allocations: 31.94 kB / 284.8 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.02281, allocations: 11.94 kB / 284.8 MB, free: 4.902 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001046/0.02292, allocations: 193.1 kB / 285 MB, free: 4.711 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02292, allocations: 0 / 285 MB, free: 4.711 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000312/0.02323, allocations: 95.88 kB / 285.1 MB, free: 4.617 MB / 266.7 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.0001249/0.02336, allocations: 103.2 kB / 285.2 MB, free: 4.508 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004562/0.02381, allocations: 356.7 kB / 285.5 MB, free: 4.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.02381, allocations: 0 / 285.5 MB, free: 4.141 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002256/0.02404, allocations: 300.5 kB / 285.8 MB, free: 3.828 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.02434, allocations: 55.75 kB / 285.9 MB, free: 3.773 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.02547, allocations: 0.5573 MB / 286.4 MB, free: 3.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.017e-05/0.02553, allocations: 92.31 kB / 286.5 MB, free: 3.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.091e-05/0.02559, allocations: 18.3 kB / 286.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.851e-05/0.02564, allocations: 24.48 kB / 286.6 MB, free: 3.027 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/0.02564, allocations: 0 / 286.6 MB, free: 3.027 MB / 266.7 MB Notification: Performance of Templates: time 0.1114/0.137, allocations: 4.599 MB / 291.2 MB, free: 27.68 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0648596710525453]