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.001063/0.001063, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001637/0.002699, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0009821/0.0009821, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00141/0.002392, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.929/0.929, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08608/1.015, allocations: 52.5 MB / 238.3 MB, free: 4.43 MB / 234.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.693e-06/1.693e-06, allocations: 3.938 kB / 239.6 MB, free: 3.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.714e-05/1.884e-05, allocations: 2.312 kB / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00404/0.004058, allocations: 2.956 MB / 242.5 MB, free: 204 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.005259, allocations: 0.7476 MB / 243.3 MB, free: 15.45 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.005374, allocations: 4 kB / 243.3 MB, free: 15.44 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.947e-05/0.005464, allocations: 51.5 kB / 243.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.005607, allocations: 103 kB / 243.4 MB, free: 15.29 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.005836, allocations: 107.8 kB / 243.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.006144, allocations: 426 kB / 243.9 MB, free: 14.77 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.006286, allocations: 94.27 kB / 244 MB, free: 14.67 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.006546, allocations: 260 kB / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.006734, allocations: 127.7 kB / 244.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.013e-05/0.006785, allocations: 36 kB / 244.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.075e-05/0.006825, allocations: 40 kB / 244.5 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.542e-05/0.006871, allocations: 55.81 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.006977, allocations: 103.8 kB / 244.6 MB, free: 14.06 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.007292, allocations: 251.1 kB / 244.9 MB, free: 13.81 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.707e-05/0.007309, allocations: 4 kB / 244.9 MB, free: 13.81 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.007311, allocations: 0 / 244.9 MB, free: 13.81 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.636e-05/0.007328, allocations: 0 / 244.9 MB, free: 13.81 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.000808/0.008136, allocations: 0.5862 MB / 245.5 MB, free: 13.19 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.008175, allocations: 12.03 kB / 245.5 MB, free: 13.18 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.008249, allocations: 40.91 kB / 245.5 MB, free: 13.14 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.008511, allocations: 193.2 kB / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.008534, allocations: 20.88 kB / 245.7 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/0.008586, allocations: 24.38 kB / 245.8 MB, free: 12.88 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.008887, allocations: 280.1 kB / 246 MB, free: 12.58 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.008896, allocations: 192 / 246 MB, free: 12.58 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.008913, allocations: 12.38 kB / 246 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.008921, allocations: 11.94 kB / 246.1 MB, free: 12.55 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.624e-05/0.009018, allocations: 67.47 kB / 246.1 MB, free: 12.49 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008304/0.009848, allocations: 0.7792 MB / 246.9 MB, free: 11.67 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.01009, allocations: 150.4 kB / 247 MB, free: 11.51 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.01022, allocations: 79.64 kB / 247.1 MB, free: 11.43 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.01024, allocations: 7.938 kB / 247.1 MB, free: 11.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/0.01042, allocations: 178.1 kB / 247.3 MB, free: 11.21 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.01042, allocations: 3.938 kB / 247.3 MB, free: 11.21 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006689/0.01109, allocations: 301.3 kB / 247.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.01112, allocations: 77.11 kB / 247.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.01124, allocations: 213 kB / 247.9 MB, free: 10.59 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.01126, allocations: 33.7 kB / 247.9 MB, free: 10.55 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.369e-05/0.01133, allocations: 160.5 kB / 248.1 MB, free: 10.39 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.005e-05/0.01137, allocations: 71.42 kB / 248.1 MB, free: 10.32 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.548e-05/0.01142, allocations: 53.62 kB / 248.2 MB, free: 10.27 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.864e-05/0.01151, allocations: 342.7 kB / 248.5 MB, free: 9.922 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.12e-05/0.01154, allocations: 20 kB / 248.6 MB, free: 9.902 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.476e-05/0.01162, allocations: 128.5 kB / 248.7 MB, free: 9.746 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.05e-05/0.01171, allocations: 91.3 kB / 248.8 MB, free: 9.645 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01171, allocations: 0 / 248.8 MB, free: 9.645 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001611/0.01187, allocations: 158.9 kB / 248.9 MB, free: 9.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.01188, allocations: 4 kB / 248.9 MB, free: 9.477 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.01189, allocations: 8.125 kB / 248.9 MB, free: 9.469 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.01206, allocations: 60.8 kB / 249 MB, free: 9.406 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.01217, allocations: 35.92 kB / 249 MB, free: 9.371 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.01358, allocations: 1.633 MB / 250.7 MB, free: 7.652 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.01368, allocations: 27.88 kB / 250.7 MB, free: 7.625 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-06/0.01369, allocations: 4 kB / 250.7 MB, free: 7.621 MB / 250.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.25e-05/0.01377, allocations: 121.8 kB / 250.8 MB, free: 7.492 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.808e-05/0.0138, allocations: 31.91 kB / 250.8 MB, free: 7.461 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.895e-05/0.01383, allocations: 26.28 kB / 250.9 MB, free: 7.434 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.01384, allocations: 12.02 kB / 250.9 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.01384, allocations: 0 / 250.9 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.01384, allocations: 3.984 kB / 250.9 MB, free: 7.418 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003792/0.01422, allocations: 447.8 kB / 251.3 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.01423, allocations: 3.984 kB / 251.3 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.382e-05/0.01431, allocations: 31.92 kB / 251.4 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.01435, allocations: 19.86 kB / 251.4 MB, free: 6.895 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001513/0.01451, allocations: 68.72 kB / 251.4 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.01452, allocations: 4 kB / 251.4 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.01554, allocations: 1.626 MB / 253.1 MB, free: 5.109 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.01554, allocations: 4 kB / 253.1 MB, free: 5.105 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.01575, allocations: 273.7 kB / 253.3 MB, free: 4.816 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.01577, allocations: 8 kB / 253.4 MB, free: 4.809 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-05/0.01585, allocations: 19.98 kB / 253.4 MB, free: 4.789 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.254e-05/0.01592, allocations: 31.94 kB / 253.4 MB, free: 4.758 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.01592, allocations: 0 / 253.4 MB, free: 4.758 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.163e-05/0.01598, allocations: 74.78 kB / 253.5 MB, free: 4.684 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01598, allocations: 0 / 253.5 MB, free: 4.684 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002517/0.01623, allocations: 95.77 kB / 253.6 MB, free: 4.59 MB / 250.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.828e-05/0.01633, allocations: 88.44 kB / 253.7 MB, free: 4.492 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003074/0.01663, allocations: 277.7 kB / 253.9 MB, free: 4.211 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/0.01664, allocations: 4 kB / 253.9 MB, free: 4.207 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.01682, allocations: 231.1 kB / 254.2 MB, free: 3.965 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.01703, allocations: 72.94 kB / 254.2 MB, free: 3.891 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003104/0.02014, allocations: 0.5488 MB / 254.8 MB, free: 3.309 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.946e-05/0.02021, allocations: 88.31 kB / 254.9 MB, free: 3.203 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.239e-05/0.02029, allocations: 26.28 kB / 254.9 MB, free: 3.18 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.02043, allocations: 103.3 kB / 255 MB, free: 3.078 MB / 250.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02043, allocations: 0 / 255 MB, free: 3.078 MB / 250.7 MB Notification: Performance of Templates: time 0.008321/0.02875, allocations: 5.129 MB / 260.1 MB, free: 14.05 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 -ignoreHideResult -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.7435642518103123]