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.00194/0.00194, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002012/0.002012, allocations: 153.1 kB / 24.26 MB, free: 172 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.585/1.585, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] 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.425e-06/2.425e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.818e-05/5.061e-05, allocations: 5.547 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.008319/0.00837, allocations: 2.89 MB / 270.2 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002418/0.01079, allocations: 0.7166 MB / 270.9 MB, free: 3.098 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/0.01105, allocations: 4 kB / 270.9 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000303/0.01135, allocations: 55.44 kB / 271 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004633/0.01182, allocations: 107 kB / 271.1 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005652/0.01238, allocations: 99.81 kB / 271.2 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000847/0.01323, allocations: 418.1 kB / 271.6 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003474/0.01357, allocations: 99.53 kB / 271.7 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006165/0.01419, allocations: 239.4 kB / 271.9 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003662/0.01456, allocations: 119.7 kB / 272.1 MB, free: 1.973 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.01466, allocations: 40 kB / 272.1 MB, free: 1.934 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.01477, allocations: 36 kB / 272.1 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.01492, allocations: 79.67 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002642/0.01518, allocations: 119.8 kB / 272.3 MB, free: 1.703 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009353/0.01612, allocations: 454.6 kB / 272.8 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.01612, allocations: 0 / 272.8 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.01612, allocations: 0 / 272.8 MB, free: 1.258 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.01613, allocations: 0 / 272.8 MB, free: 1.258 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.001904/0.01804, allocations: 0.6835 MB / 273.4 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.01809, allocations: 8.922 kB / 273.5 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001902/0.01828, allocations: 56.75 kB / 273.5 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006094/0.01889, allocations: 228 kB / 273.7 MB, free: 228 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.01894, allocations: 20.88 kB / 273.8 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.331e-05/0.01903, allocations: 32.33 kB / 273.8 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.02008, allocations: 360 kB / 274.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.0201, allocations: 4.172 kB / 274.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.597e-05/0.02015, allocations: 12.38 kB / 274.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.02017, allocations: 15.94 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000793/0.02097, allocations: 189.9 kB / 274.4 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003635/0.0246, allocations: 1.216 MB / 275.6 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008722/0.02547, allocations: 203.2 kB / 275.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005917/0.02607, allocations: 135.6 kB / 275.9 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.407e-05/0.02611, allocations: 4 kB / 275.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006087/0.02672, allocations: 242.1 kB / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 2.905e-06/0.02672, allocations: 0 / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.002614/0.02933, allocations: 456.7 kB / 276.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001781/0.02951, allocations: 136.5 kB / 276.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006319/0.03015, allocations: 328.3 kB / 277 MB, free: 12.7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.679e-05/0.0302, allocations: 29.7 kB / 277.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003153/0.03052, allocations: 227.4 kB / 277.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.03066, allocations: 79.42 kB / 277.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.03087, allocations: 59.36 kB / 277.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004646/0.03133, allocations: 0.5157 MB / 277.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.03164, allocations: 71.97 kB / 278 MB, free: 11.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004669/0.0321, allocations: 193.5 kB / 278.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006433/0.03275, allocations: 178.7 kB / 278.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.03275, allocations: 0 / 278.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001071/0.03382, allocations: 305.6 kB / 278.7 MB, free: 10.97 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.03385, allocations: 4 kB / 278.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.03386, allocations: 0 / 278.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006633/0.03452, allocations: 107.5 kB / 278.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002602/0.03478, allocations: 23.98 kB / 278.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005308/0.04009, allocations: 2.638 MB / 281.4 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003723/0.04046, allocations: 23.81 kB / 281.5 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.04051, allocations: 12 kB / 281.5 MB, free: 8.035 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.0003428/0.04085, allocations: 188.6 kB / 281.7 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.04097, allocations: 43.81 kB / 281.7 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.04108, allocations: 26.28 kB / 281.7 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.04109, allocations: 4 kB / 281.7 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.0411, allocations: 4 kB / 281.7 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.04111, allocations: 7.922 kB / 281.7 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.04334, allocations: 0.8037 MB / 282.6 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.04334, allocations: 0 / 282.6 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.04355, allocations: 19.98 kB / 282.6 MB, free: 6.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005562/0.04411, allocations: 103.9 kB / 282.7 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.04415, allocations: 4 kB / 282.7 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005023/0.04917, allocations: 2.63 MB / 285.3 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.04918, allocations: 8.031 kB / 285.3 MB, free: 4.016 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.05055, allocations: 0.4957 MB / 285.8 MB, free: 3.492 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.05076, allocations: 43.83 kB / 285.9 MB, free: 3.449 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.433e-05/0.05083, allocations: 8 kB / 285.9 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/0.05119, allocations: 15.98 kB / 285.9 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.05137, allocations: 35.94 kB / 285.9 MB, free: 3.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.05141, allocations: 7.938 kB / 285.9 MB, free: 3.383 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003917/0.0518, allocations: 221.1 kB / 286.1 MB, free: 3.168 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.0518, allocations: 0 / 286.1 MB, free: 3.168 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009157/0.05272, allocations: 103.8 kB / 286.2 MB, free: 3.066 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.0002273/0.05294, allocations: 103.4 kB / 286.3 MB, free: 2.957 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.05432, allocations: 432.7 kB / 286.8 MB, free: 2.516 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.05432, allocations: 0 / 286.8 MB, free: 2.516 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008793/0.0552, allocations: 332.7 kB / 287.1 MB, free: 2.172 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007475/0.05595, allocations: 52.69 kB / 287.1 MB, free: 2.117 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.05811, allocations: 0.5691 MB / 287.7 MB, free: 1.516 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.0584, allocations: 154.9 kB / 287.9 MB, free: 1.344 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001445/0.05854, allocations: 18.3 kB / 287.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.357e-05/0.05863, allocations: 24.5 kB / 287.9 MB, free: 1.305 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.05863, allocations: 0 / 287.9 MB, free: 1.305 MB / 266.7 MB Notification: Performance of Templates: time 0.1376/0.1962, allocations: 4.613 MB / 292.5 MB, free: 31.41 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.661209878046066]