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.002009/0.002009, allocations: 107.5 kB / 20.44 MB, free: 1.355 MB / 14.72 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.001438/0.001438, allocations: 193.2 kB / 23.71 MB, free: 4.555 MB / 14.72 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.481/1.481, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 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 0.001621/0.001621, allocations: 51.91 kB / 370.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2952, allocations: 52.18 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004481/0.2997, allocations: 2.729 MB / 425.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.3011, allocations: 0.6934 MB / 426.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.3012, allocations: 7.938 kB / 426.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.3014, allocations: 51.5 kB / 426.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.3016, allocations: 99.12 kB / 426.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003155/0.3019, allocations: 103.8 kB / 426.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004704/0.3024, allocations: 410.3 kB / 427.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.3026, allocations: 83.69 kB / 427.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.3028, allocations: 163.4 kB / 427.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.3031, allocations: 147.3 kB / 427.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.3031, allocations: 40 kB / 427.6 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.627e-05/0.3032, allocations: 36 kB / 427.6 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.446e-05/0.3033, allocations: 71.77 kB / 427.7 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.3034, allocations: 147.4 kB / 427.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004997/0.3039, allocations: 439.6 kB / 428.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3039, allocations: 0 / 428.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3039, allocations: 0 / 428.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3039, allocations: 0 / 428.2 MB, free: 9.293 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.001134/0.3051, allocations: 0.5567 MB / 428.8 MB, free: 8.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.3051, allocations: 8.031 kB / 428.8 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.462e-05/0.3052, allocations: 32.75 kB / 428.8 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.3056, allocations: 237.8 kB / 429.1 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.3057, allocations: 20.81 kB / 429.1 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.3057, allocations: 28.38 kB / 429.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005866/0.3063, allocations: 339.3 kB / 429.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.3063, allocations: 0 / 429.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.3064, allocations: 12 kB / 429.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.3064, allocations: 8 kB / 429.5 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.3068, allocations: 205.8 kB / 429.7 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.3086, allocations: 0.9813 MB / 430.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000563/0.3092, allocations: 198.6 kB / 430.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.3095, allocations: 120.8 kB / 431 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.3096, allocations: 8 kB / 431 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003763/0.3099, allocations: 221.4 kB / 431.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.3099, allocations: 0 / 431.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001465/0.3114, allocations: 445.9 kB / 431.6 MB, free: 5.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.695e-05/0.3115, allocations: 136.5 kB / 431.8 MB, free: 5.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.3118, allocations: 232.9 kB / 432 MB, free: 5.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.3118, allocations: 29.7 kB / 432 MB, free: 5.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.3119, allocations: 172.6 kB / 432.2 MB, free: 5.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.593e-05/0.312, allocations: 71.38 kB / 432.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.3121, allocations: 49.7 kB / 432.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3122, allocations: 334.8 kB / 432.6 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.3124, allocations: 67.98 kB / 432.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.3126, allocations: 184.5 kB / 432.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003172/0.313, allocations: 167.3 kB / 433 MB, free: 4.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.313, allocations: 0 / 433 MB, free: 4.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005195/0.3135, allocations: 282.2 kB / 433.3 MB, free: 3.898 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.3135, allocations: 14.12 kB / 433.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3135, allocations: 128 / 433.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003548/0.3139, allocations: 92.8 kB / 433.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.314, allocations: 31.92 kB / 433.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/0.3165, allocations: 2.001 MB / 435.5 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.3167, allocations: 31.83 kB / 435.5 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.3167, allocations: 8 kB / 435.5 MB, free: 1.617 MB / 334.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.000177/0.3169, allocations: 145.8 kB / 435.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.317, allocations: 23.86 kB / 435.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.296e-05/0.317, allocations: 30.27 kB / 435.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.317, allocations: 7.938 kB / 435.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.317, allocations: 4.062 kB / 435.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.317, allocations: 0 / 435.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009773/0.318, allocations: 0.6571 MB / 436.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.318, allocations: 3.938 kB / 436.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3181, allocations: 19.98 kB / 436.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002697/0.3184, allocations: 96.78 kB / 436.5 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.3184, allocations: 4 kB / 436.5 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/0.3209, allocations: 1.99 MB / 438.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3209, allocations: 3.938 kB / 438.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007341/0.3216, allocations: 445.6 kB / 438.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.3217, allocations: 51.91 kB / 439 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.3217, allocations: 8 kB / 439 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.322, allocations: 19.97 kB / 439 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.3221, allocations: 39.88 kB / 439 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.3221, allocations: 8 kB / 439 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.3222, allocations: 168.5 kB / 439.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3222, allocations: 112 / 439.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004633/0.3227, allocations: 91.83 kB / 439.3 MB, free: 13.64 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.0001497/0.3229, allocations: 112.9 kB / 439.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007211/0.3236, allocations: 354.2 kB / 439.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3236, allocations: 0 / 439.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004238/0.324, allocations: 254.7 kB / 440 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.3244, allocations: 51.59 kB / 440 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.3256, allocations: 0.5974 MB / 440.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.3258, allocations: 158.8 kB / 440.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.496e-05/0.3259, allocations: 18.3 kB / 440.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.171e-05/0.3259, allocations: 19.44 kB / 440.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3259, allocations: 0 / 440.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of Templates: time 0.01029/0.3362, allocations: 4.867 MB / 445.7 MB, free: 7.262 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] 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.94363490305841]