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.001789/0.001789, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002091/0.002091, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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 2.172/2.172, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001811/0.001811, allocations: 47.88 kB / 379 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.358, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.006412/0.3644, allocations: 2.754 MB / 435.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002639/0.367, allocations: 0.7635 MB / 435.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.3673, allocations: 4 kB / 435.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002622/0.3676, allocations: 51.5 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003798/0.3679, allocations: 103.1 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.3685, allocations: 111.8 kB / 436.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007213/0.3692, allocations: 414.3 kB / 436.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002978/0.3695, allocations: 89.64 kB / 436.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003923/0.3699, allocations: 171.4 kB / 436.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.3703, allocations: 159.3 kB / 436.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.903e-05/0.3703, allocations: 36 kB / 437 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.3705, allocations: 40 kB / 437 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.3706, allocations: 83.69 kB / 437.1 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.3708, allocations: 151.4 kB / 437.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008871/0.3717, allocations: 434.1 kB / 437.7 MB, free: 1.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.3717, allocations: 4 kB / 437.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3717, allocations: 0 / 437.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.3717, allocations: 0 / 437.7 MB, free: 1.348 MB / 334.1 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.001455/0.3732, allocations: 0.5567 MB / 438.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3732, allocations: 8.031 kB / 438.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002372/0.3735, allocations: 48.69 kB / 438.3 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/0.374, allocations: 238.8 kB / 438.5 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.374, allocations: 20.88 kB / 438.5 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-05/0.3741, allocations: 24.38 kB / 438.6 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007701/0.3749, allocations: 339.3 kB / 438.9 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.3749, allocations: 3.938 kB / 438.9 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.33e-05/0.3749, allocations: 12 kB / 438.9 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3749, allocations: 4 kB / 438.9 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000555/0.3755, allocations: 197.9 kB / 439.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.3777, allocations: 0.9852 MB / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006431/0.3783, allocations: 212.5 kB / 440.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003683/0.3787, allocations: 124.8 kB / 440.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.3787, allocations: 4 kB / 440.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004035/0.3791, allocations: 214.2 kB / 440.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.525e-06/0.3791, allocations: 0 / 440.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001846/0.381, allocations: 452.8 kB / 441.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.3811, allocations: 136.5 kB / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.3815, allocations: 232.9 kB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.3815, allocations: 29.7 kB / 441.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.3817, allocations: 180.5 kB / 441.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3818, allocations: 75.38 kB / 441.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.382, allocations: 45.7 kB / 441.8 MB, free: 13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002048/0.3822, allocations: 338.8 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.3824, allocations: 71.97 kB / 442.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/0.3828, allocations: 173.3 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004771/0.3833, allocations: 167.3 kB / 442.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3833, allocations: 0 / 442.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008351/0.3841, allocations: 286.3 kB / 442.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3841, allocations: 7.938 kB / 442.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3841, allocations: 0 / 442.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005376/0.3847, allocations: 96.73 kB / 442.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.3849, allocations: 31.92 kB / 442.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/0.3886, allocations: 1.989 MB / 444.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.389, allocations: 27.91 kB / 444.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.585e-05/0.389, allocations: 12 kB / 444.9 MB, free: 9.66 MB / 350.1 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.000261/0.3892, allocations: 149.9 kB / 445.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.3893, allocations: 27.92 kB / 445.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.598e-05/0.3894, allocations: 30.27 kB / 445.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.3894, allocations: 7.938 kB / 445.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3894, allocations: 0 / 445.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3894, allocations: 3.984 kB / 445.1 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001451/0.3909, allocations: 0.6593 MB / 445.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3909, allocations: 112 / 445.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.3911, allocations: 23.92 kB / 445.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004388/0.3915, allocations: 88.95 kB / 445.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.3915, allocations: 15.97 kB / 445.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00342/0.395, allocations: 1.989 MB / 447.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.395, allocations: 8.031 kB / 447.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.396, allocations: 465.1 kB / 448.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.3962, allocations: 39.88 kB / 448.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.409e-05/0.3963, allocations: 7.984 kB / 448.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003232/0.3966, allocations: 15.98 kB / 448.4 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.3967, allocations: 39.88 kB / 448.5 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.3968, allocations: 4 kB / 448.5 MB, free: 5.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002497/0.397, allocations: 168.5 kB / 448.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.397, allocations: 0 / 448.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008577/0.3979, allocations: 103.9 kB / 448.7 MB, free: 5.664 MB / 350.1 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.0001641/0.398, allocations: 99.19 kB / 448.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.399, allocations: 354.2 kB / 449.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.399, allocations: 0 / 449.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006193/0.3997, allocations: 260.8 kB / 449.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006636/0.4003, allocations: 40.41 kB / 449.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.402, allocations: 0.6061 MB / 450.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.4022, allocations: 159.5 kB / 450.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.4024, allocations: 18.23 kB / 450.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.931e-05/0.4024, allocations: 23.42 kB / 450.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4024, allocations: 0 / 450.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of Templates: time 0.01401/0.4164, allocations: 4.916 MB / 455.2 MB, free: 15.23 MB / 366.1 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.391463959007524]