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.0008908/0.0008908, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008465/0.0008465, allocations: 141.7 kB / 24.89 MB, free: 8.777 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 0.8733/0.8733, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.663e-06/1.663e-06, allocations: 0 / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.324e-05/1.49e-05, allocations: 2.312 kB / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002647/0.002662, allocations: 2.907 MB / 271.4 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009899/0.003652, allocations: 0.7398 MB / 272.1 MB, free: 2.355 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.003766, allocations: 4 kB / 272.1 MB, free: 2.352 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.003893, allocations: 51.5 kB / 272.2 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001467/0.00404, allocations: 111 kB / 272.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.004274, allocations: 111.7 kB / 272.4 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003637/0.004638, allocations: 418.1 kB / 272.8 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.004821, allocations: 94.22 kB / 272.9 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/0.005148, allocations: 235.4 kB / 273.1 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.00535, allocations: 123.7 kB / 273.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.756e-05/0.005407, allocations: 36 kB / 273.3 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.697e-05/0.005464, allocations: 44 kB / 273.3 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.5e-05/0.005529, allocations: 79.67 kB / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.005659, allocations: 119.8 kB / 273.5 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.005982, allocations: 263.1 kB / 273.8 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.005984, allocations: 0 / 273.8 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.005984, allocations: 4 kB / 273.8 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.005993, allocations: 0 / 273.8 MB, free: 0.6875 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.0006171/0.00661, allocations: 0.5357 MB / 274.3 MB, free: 128 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.006639, allocations: 8.922 kB / 274.3 MB, free: 120 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.371e-05/0.006693, allocations: 44.91 kB / 274.4 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/0.006885, allocations: 181.3 kB / 274.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.0069, allocations: 20.88 kB / 274.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.006935, allocations: 28.36 kB / 274.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.007169, allocations: 276.2 kB / 274.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.007179, allocations: 8.172 kB / 274.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.007195, allocations: 8.375 kB / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.007203, allocations: 11.94 kB / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.61e-05/0.007299, allocations: 71.41 kB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000775/0.008074, allocations: 0.787 MB / 275.7 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.008288, allocations: 134.5 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.008394, allocations: 76.81 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.00841, allocations: 7.938 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001283/0.008538, allocations: 174.1 kB / 276.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.092e-06/0.008539, allocations: 0 / 276.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005598/0.009099, allocations: 301.1 kB / 276.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.009143, allocations: 132.5 kB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.009262, allocations: 209 kB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.00928, allocations: 33.7 kB / 276.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.923e-05/0.009339, allocations: 160.6 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.482e-05/0.009384, allocations: 79.39 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.325e-05/0.009437, allocations: 49.64 kB / 277.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.721e-05/0.009514, allocations: 338.7 kB / 277.4 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.305e-05/0.009547, allocations: 20 kB / 277.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.134e-05/0.009619, allocations: 132.5 kB / 277.5 MB, free: 12.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.139e-05/0.00971, allocations: 95.28 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.009712, allocations: 0 / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001595/0.009871, allocations: 159 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.009882, allocations: 4 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.009891, allocations: 8 kB / 277.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.01005, allocations: 68.72 kB / 277.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.282e-05/0.01013, allocations: 23.98 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009915/0.01112, allocations: 1.614 MB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.086e-05/0.0112, allocations: 27.88 kB / 279.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.01121, allocations: 8 kB / 279.5 MB, free: 10.52 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 7.961e-05/0.01129, allocations: 125.9 kB / 279.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.01131, allocations: 23.91 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.758e-05/0.01134, allocations: 30.27 kB / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.01135, allocations: 4 kB / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.01135, allocations: 0 / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.01135, allocations: 0 / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.01172, allocations: 459.8 kB / 280.2 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01172, allocations: 0 / 280.2 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.8e-05/0.01178, allocations: 23.94 kB / 280.2 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.0119, allocations: 60.83 kB / 280.3 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.01191, allocations: 4 kB / 280.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.01296, allocations: 1.637 MB / 281.9 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01296, allocations: 4.031 kB / 281.9 MB, free: 8.035 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002171/0.01317, allocations: 276.9 kB / 282.2 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.703e-05/0.01322, allocations: 31.72 kB / 282.2 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.01324, allocations: 8 kB / 282.2 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.147e-05/0.01332, allocations: 11.98 kB / 282.2 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.161e-05/0.01338, allocations: 39.88 kB / 282.3 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.01339, allocations: 0 / 282.3 MB, free: 7.656 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.573e-05/0.01345, allocations: 74.89 kB / 282.3 MB, free: 7.582 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01345, allocations: 3.938 kB / 282.3 MB, free: 7.578 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002528/0.0137, allocations: 95.88 kB / 282.4 MB, free: 7.484 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 7.726e-05/0.01378, allocations: 80.42 kB / 282.5 MB, free: 7.395 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002912/0.01407, allocations: 274.8 kB / 282.8 MB, free: 7.113 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.01407, allocations: 4 kB / 282.8 MB, free: 7.109 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.01424, allocations: 231.4 kB / 283 MB, free: 6.867 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.01442, allocations: 48.81 kB / 283.1 MB, free: 6.816 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000908/0.01533, allocations: 0.5529 MB / 283.6 MB, free: 6.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.716e-05/0.01539, allocations: 92.3 kB / 283.7 MB, free: 6.121 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.711e-05/0.01545, allocations: 22.3 kB / 283.7 MB, free: 6.102 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.01555, allocations: 99.34 kB / 283.8 MB, free: 6.004 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01556, allocations: 0 / 283.8 MB, free: 6.004 MB / 266.7 MB Notification: Performance of Templates: time 0.006319/0.02187, allocations: 4.825 MB / 288.6 MB, free: 1.277 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.6003334634006023]