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.001203/0.001203, allocations: 80.92 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001399/0.001399, allocations: 174.5 kB / 24.91 MB, free: 9.191 MB / 18.57 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 0.9584/0.9584, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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 1.253e-06/1.253e-06, allocations: 0 / 273.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.785e-05/1.911e-05, allocations: 6.312 kB / 273.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003002/0.003021, allocations: 2.922 MB / 276.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.004041, allocations: 0.7981 MB / 277.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.004152, allocations: 8 kB / 277.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.004283, allocations: 51.5 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.004428, allocations: 111 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.004703, allocations: 119.7 kB / 277.5 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.004996, allocations: 422.1 kB / 277.9 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.005151, allocations: 90.23 kB / 278 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.005411, allocations: 243.5 kB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.005569, allocations: 119.7 kB / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/0.005608, allocations: 43.94 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.478e-05/0.005673, allocations: 47.98 kB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.973e-05/0.005723, allocations: 79.69 kB / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.505e-05/0.005808, allocations: 115.8 kB / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002627/0.006071, allocations: 283 kB / 278.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.006073, allocations: 0 / 278.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.006074, allocations: 0 / 278.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.006078, allocations: 0 / 278.9 MB, free: 11.84 MB / 266.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.0005686/0.006647, allocations: 0.528 MB / 279.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.006678, allocations: 8.031 kB / 279.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.0068, allocations: 52.89 kB / 279.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000207/0.007007, allocations: 198 kB / 279.7 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.007023, allocations: 16.88 kB / 279.7 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.007056, allocations: 28.38 kB / 279.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002432/0.007299, allocations: 272.2 kB / 280 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.007308, allocations: 4.188 kB / 280 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.007327, allocations: 12.38 kB / 280 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.007335, allocations: 11.92 kB / 280 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.007435, allocations: 75.41 kB / 280.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008059/0.008241, allocations: 0.7832 MB / 280.9 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.008469, allocations: 137.5 kB / 281 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.008583, allocations: 76.81 kB / 281.1 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.008601, allocations: 7.938 kB / 281.1 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001399/0.00874, allocations: 185.5 kB / 281.2 MB, free: 9.305 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.183e-06/0.008742, allocations: 0 / 281.2 MB, free: 9.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005756/0.009317, allocations: 302 kB / 281.5 MB, free: 9 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.009366, allocations: 132.5 kB / 281.7 MB, free: 8.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.009488, allocations: 213 kB / 281.9 MB, free: 8.621 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.009508, allocations: 37.72 kB / 281.9 MB, free: 8.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.55e-05/0.009573, allocations: 152.6 kB / 282.1 MB, free: 8.422 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.009617, allocations: 83.34 kB / 282.1 MB, free: 8.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.009672, allocations: 45.69 kB / 282.2 MB, free: 8.289 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.08e-05/0.009753, allocations: 338.7 kB / 282.5 MB, free: 7.949 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.219e-05/0.009785, allocations: 20 kB / 282.5 MB, free: 7.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.453e-05/0.00986, allocations: 136.4 kB / 282.7 MB, free: 7.766 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.402e-05/0.009954, allocations: 93.98 kB / 282.8 MB, free: 7.664 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.009956, allocations: 0 / 282.8 MB, free: 7.664 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001646/0.01012, allocations: 159 kB / 282.9 MB, free: 7.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.01013, allocations: 4 kB / 282.9 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-06/0.01014, allocations: 4 kB / 282.9 MB, free: 7.492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001651/0.0103, allocations: 56.8 kB / 283 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.662e-05/0.01038, allocations: 27.92 kB / 283 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/0.0114, allocations: 1.633 MB / 284.6 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.796e-05/0.01148, allocations: 23.89 kB / 284.7 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.01149, allocations: 4 kB / 284.7 MB, free: 5.66 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 8.23e-05/0.01157, allocations: 133.8 kB / 284.8 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.458e-05/0.01159, allocations: 23.92 kB / 284.8 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.01162, allocations: 30.27 kB / 284.9 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.01162, allocations: 4 kB / 284.9 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.01163, allocations: 0 / 284.9 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.01163, allocations: 0 / 284.9 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003634/0.01199, allocations: 455.8 kB / 285.3 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.012, allocations: 8 kB / 285.3 MB, free: 4.977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.746e-05/0.01205, allocations: 15.98 kB / 285.3 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001254/0.01218, allocations: 60.84 kB / 285.4 MB, free: 4.898 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.01219, allocations: 0 / 285.4 MB, free: 4.898 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009319/0.01312, allocations: 1.634 MB / 287 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.01312, allocations: 8.016 kB / 287 MB, free: 3.168 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002321/0.01335, allocations: 280.7 kB / 287.3 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.843e-05/0.0134, allocations: 27.78 kB / 287.3 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.01342, allocations: 8 kB / 287.3 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.01351, allocations: 15.98 kB / 287.4 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/0.01357, allocations: 31.94 kB / 287.4 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.01358, allocations: 8 kB / 287.4 MB, free: 2.785 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.987e-05/0.01363, allocations: 66.78 kB / 287.5 MB, free: 2.719 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01363, allocations: 0 / 287.5 MB, free: 2.719 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002496/0.01388, allocations: 103.8 kB / 287.6 MB, free: 2.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 9.091e-05/0.01397, allocations: 84.42 kB / 287.6 MB, free: 2.527 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002994/0.01427, allocations: 270.6 kB / 287.9 MB, free: 2.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.01427, allocations: 0 / 287.9 MB, free: 2.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.01446, allocations: 235.4 kB / 288.1 MB, free: 2.004 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.01465, allocations: 52.41 kB / 288.2 MB, free: 1.953 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008473/0.0155, allocations: 0.5562 MB / 288.7 MB, free: 1.367 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.22e-05/0.01555, allocations: 96.28 kB / 288.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.009e-05/0.01562, allocations: 22.28 kB / 288.9 MB, free: 1.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.01574, allocations: 99.34 kB / 289 MB, free: 1.133 MB / 266.7 MB Notification: Performance of SimCode: time 7.02e-07/0.01574, allocations: 0 / 289 MB, free: 1.133 MB / 266.7 MB Notification: Performance of Templates: time 0.006277/0.02201, allocations: 4.85 MB / 293.8 MB, free: 12.39 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] 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","",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.663694193121046]