Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 58.66 kB / 306.9 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09858/0.09986, allocations: 50.54 MB / 357.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005715/0.1056, allocations: 4.017 MB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002856/0.1085, allocations: 1.605 MB / 363.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005044/0.1091, allocations: 11.94 kB / 363.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009177/0.11, allocations: 230.8 kB / 363.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008622/0.1109, allocations: 258.6 kB / 363.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007458/0.1117, allocations: 227.6 kB / 363.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009778/0.1127, allocations: 0.7044 MB / 364.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.113, allocations: 149.7 kB / 364.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005639/0.1136, allocations: 254.9 kB / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.114, allocations: 286.8 kB / 365.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.981e-05/0.1141, allocations: 32 kB / 365.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000278/0.1144, allocations: 91.89 kB / 365.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.1146, allocations: 123.5 kB / 365.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003526/0.1149, allocations: 282.4 kB / 365.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006078/0.1155, allocations: 0.5221 MB / 366.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1156, allocations: 0 / 366.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1156, allocations: 0 / 366.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.545e-05/0.1156, allocations: 0 / 366.2 MB, free: 5.688 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001885/0.1175, allocations: 0.9414 MB / 367.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1175, allocations: 12.03 kB / 367.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002473/0.1178, allocations: 76.09 kB / 367.2 MB, free: 4.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005923/0.1184, allocations: 410.8 kB / 367.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.1185, allocations: 29.38 kB / 367.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.115e-05/0.1185, allocations: 52.05 kB / 367.7 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007964/0.1193, allocations: 433.6 kB / 368.1 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1193, allocations: 4 kB / 368.1 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.318e-05/0.1194, allocations: 16 kB / 368.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1194, allocations: 12 kB / 368.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006076/0.12, allocations: 315.7 kB / 368.5 MB, free: 3.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.1226, allocations: 1.718 MB / 370.2 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006965/0.1233, allocations: 371.9 kB / 370.5 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/0.1236, allocations: 184.8 kB / 370.7 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-05/0.1237, allocations: 7.984 kB / 370.7 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004762/0.1242, allocations: 262.4 kB / 371 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.405e-06/0.1242, allocations: 0 / 371 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.1625/0.2867, allocations: 1.006 MB / 372 MB, free: 20.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.335e-05/0.2868, allocations: 192.8 kB / 372.2 MB, free: 20.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008263/0.2876, allocations: 0.5003 MB / 372.7 MB, free: 20.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.897e-05/0.2877, allocations: 35.52 kB / 372.7 MB, free: 19.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.2879, allocations: 256.9 kB / 373 MB, free: 19.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.288, allocations: 128.3 kB / 373.1 MB, free: 19.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.2882, allocations: 77.27 kB / 373.2 MB, free: 19.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.2883, allocations: 362.5 kB / 373.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.2886, allocations: 121.2 kB / 373.6 MB, free: 19.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.289, allocations: 220 kB / 373.9 MB, free: 19.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004821/0.2895, allocations: 264.4 kB / 374.1 MB, free: 19.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2895, allocations: 0 / 374.1 MB, free: 19.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009179/0.2904, allocations: 483.6 kB / 374.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.2904, allocations: 4.875 kB / 374.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.2904, allocations: 1.062 kB / 374.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005693/0.291, allocations: 163.3 kB / 374.8 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.2913, allocations: 48.2 kB / 374.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003963/0.2952, allocations: 5.947 MB / 380.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004036/0.2957, allocations: 53.66 kB / 380.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.2957, allocations: 14.42 kB / 380.8 MB, free: 13.21 MB / 302.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: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002397/0.296, allocations: 191.3 kB / 381 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.602e-05/0.2961, allocations: 54.03 kB / 381.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.2962, allocations: 58.45 kB / 381.1 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-06/0.2962, allocations: 7.812 kB / 381.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.2962, allocations: 1.781 kB / 381.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2962, allocations: 1.594 kB / 381.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005486/0.2968, allocations: 494.7 kB / 381.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2968, allocations: 0.7031 kB / 381.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.2969, allocations: 33.59 kB / 381.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004252/0.2973, allocations: 157.4 kB / 381.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.2974, allocations: 7.859 kB / 381.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003342/0.3007, allocations: 5.803 MB / 387.6 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.3007, allocations: 4.688 kB / 387.6 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009219/0.3017, allocations: 0.5068 MB / 388.1 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/0.3019, allocations: 155.2 kB / 388.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.96e-05/0.3019, allocations: 19.97 kB / 388.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.3022, allocations: 27.5 kB / 388.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.3024, allocations: 55.19 kB / 388.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/0.3024, allocations: 13.42 kB / 388.4 MB, free: 6.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004442/0.3029, allocations: 368.7 kB / 388.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3029, allocations: 0 / 388.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000788/0.3037, allocations: 176.3 kB / 388.9 MB, free: 6.316 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009468/0.3046, allocations: 432.3 kB / 389.3 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.3057, allocations: 0.8005 MB / 390.1 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3058, allocations: 0 / 390.1 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005939/0.3064, allocations: 0.6437 MB / 390.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006037/0.307, allocations: 107 kB / 390.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.3089, allocations: 1.206 MB / 392.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.3093, allocations: 0.8686 MB / 393 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3094, allocations: 31.78 kB / 393 MB, free: 3.512 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3094, allocations: 0 / 393 MB, free: 3.512 MB / 302.1 MB Notification: Performance of Templates: time 0.02134/0.3308, allocations: 14.89 MB / 407.9 MB, free: 12.04 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches