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.001164/0.001164, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001376/0.001376, allocations: 150.1 kB / 24.81 MB, free: 9.285 MB / 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.059/1.059, allocations: 173.4 MB / 201.4 MB, free: 9.195 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 2.304e-06/2.304e-06, allocations: 0 / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.52e-05/3.75e-05, allocations: 6.25 kB / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00348/0.003517, allocations: 2.901 MB / 271.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.004648, allocations: 0.7167 MB / 272 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.004797, allocations: 4 kB / 272 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.004966, allocations: 47.5 kB / 272.1 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.005136, allocations: 111 kB / 272.2 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.005406, allocations: 103.8 kB / 272.3 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003427/0.005748, allocations: 422.1 kB / 272.7 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.005977, allocations: 95.59 kB / 272.8 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.0063, allocations: 235.4 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.006485, allocations: 131.7 kB / 273.2 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.511e-05/0.00653, allocations: 36 kB / 273.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.896e-05/0.006569, allocations: 36 kB / 273.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.404e-05/0.006623, allocations: 75.69 kB / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.349e-05/0.006716, allocations: 123.7 kB / 273.4 MB, free: 1.137 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002815/0.006998, allocations: 267.1 kB / 273.7 MB, free: 0.875 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.007, allocations: 0 / 273.7 MB, free: 0.875 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.007001, allocations: 0 / 273.7 MB, free: 0.875 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.007005, allocations: 3.938 kB / 273.7 MB, free: 0.8711 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.0007061/0.007712, allocations: 0.6488 MB / 274.3 MB, free: 188 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.007759, allocations: 12.92 kB / 274.3 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.377e-05/0.007833, allocations: 56.7 kB / 274.4 MB, free: 120 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.008105, allocations: 224 kB / 274.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.008128, allocations: 20.88 kB / 274.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.008167, allocations: 28.38 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003062/0.008473, allocations: 284.7 kB / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.008483, allocations: 192 / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.008502, allocations: 8.375 kB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.008511, allocations: 11.94 kB / 275 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001052/0.008617, allocations: 75.42 kB / 275 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.009657, allocations: 1.049 MB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.00992, allocations: 155.1 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.01004, allocations: 83.62 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.01006, allocations: 7.938 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.01024, allocations: 210 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.122e-06/0.01024, allocations: 0 / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.000696/0.01094, allocations: 324.9 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.445e-05/0.01101, allocations: 144.4 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.01117, allocations: 264.2 kB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.01119, allocations: 29.7 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.911e-05/0.01129, allocations: 219.3 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.708e-05/0.01134, allocations: 79.34 kB / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.025e-05/0.01141, allocations: 55.34 kB / 277.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.01156, allocations: 0.5001 MB / 278.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.399e-05/0.01161, allocations: 31.91 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.991e-05/0.0117, allocations: 141.5 kB / 278.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/0.01181, allocations: 110.7 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.01182, allocations: 0 / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002071/0.01202, allocations: 197.6 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.01204, allocations: 8 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.01204, allocations: 4 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001825/0.01223, allocations: 67.62 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.813e-05/0.01231, allocations: 27.98 kB / 278.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.01367, allocations: 2.322 MB / 281 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.836e-05/0.01377, allocations: 27.88 kB / 281.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.01378, allocations: 8.031 kB / 281.1 MB, free: 9.004 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.0001018/0.01388, allocations: 168.5 kB / 281.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.535e-05/0.01392, allocations: 31.86 kB / 281.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.314e-05/0.01395, allocations: 34.27 kB / 281.3 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.01396, allocations: 0 / 281.3 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.01396, allocations: 4 kB / 281.3 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.01396, allocations: 0 / 281.3 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005/0.01446, allocations: 0.6284 MB / 281.9 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.01447, allocations: 0 / 281.9 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.915e-05/0.01454, allocations: 31.95 kB / 282 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001524/0.01469, allocations: 63.78 kB / 282 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.0147, allocations: 4 kB / 282 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.01595, allocations: 2.329 MB / 284.3 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.01596, allocations: 3.984 kB / 284.3 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002957/0.01625, allocations: 363.6 kB / 284.7 MB, free: 5.168 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.954e-05/0.01631, allocations: 51.7 kB / 284.8 MB, free: 5.117 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.01633, allocations: 8 kB / 284.8 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.904e-05/0.01642, allocations: 15.98 kB / 284.8 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.01649, allocations: 27.94 kB / 284.8 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.0165, allocations: 8.062 kB / 284.8 MB, free: 5.059 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.208e-05/0.01658, allocations: 189.1 kB / 285 MB, free: 4.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01658, allocations: 0 / 285 MB, free: 4.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00031/0.01689, allocations: 95.84 kB / 285.1 MB, free: 4.781 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.0001169/0.01701, allocations: 103.2 kB / 285.2 MB, free: 4.672 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003777/0.01739, allocations: 332.7 kB / 285.5 MB, free: 4.328 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.01739, allocations: 192 / 285.5 MB, free: 4.328 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002213/0.01761, allocations: 296.2 kB / 285.8 MB, free: 4.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.01789, allocations: 48.81 kB / 285.9 MB, free: 3.969 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009429/0.01884, allocations: 0.5495 MB / 286.4 MB, free: 3.383 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.878e-05/0.01889, allocations: 96.3 kB / 286.5 MB, free: 3.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.706e-05/0.01895, allocations: 18.3 kB / 286.5 MB, free: 3.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.01908, allocations: 126.2 kB / 286.6 MB, free: 3.125 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01908, allocations: 0 / 286.6 MB, free: 3.125 MB / 266.7 MB Notification: Performance of Templates: time 0.1124/0.1314, allocations: 4.907 MB / 291.5 MB, free: 28.61 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: 2.840220673941076]