Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 196 kB / 18 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 39.94 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3798, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005464/0.3853, allocations: 3.97 MB / 404.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002672/0.388, allocations: 1.43 MB / 406.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002592/0.3883, allocations: 11.94 kB / 406.1 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008421/0.3892, allocations: 246.8 kB / 406.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000604/0.3898, allocations: 250.4 kB / 406.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008021/0.3906, allocations: 298.6 kB / 406.9 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007309/0.3913, allocations: 0.7124 MB / 407.6 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003197/0.3917, allocations: 164.9 kB / 407.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003457/0.392, allocations: 275 kB / 408.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003668/0.3924, allocations: 298.7 kB / 408.4 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.448e-05/0.3925, allocations: 48 kB / 408.4 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002316/0.3927, allocations: 99.97 kB / 408.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.3929, allocations: 151.4 kB / 408.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002725/0.3932, allocations: 298.5 kB / 408.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008313/0.394, allocations: 0.7078 MB / 409.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.394, allocations: 0 / 409.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.394, allocations: 0 / 409.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.3941, allocations: 3.938 kB / 409.6 MB, free: 15.91 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001691/0.3957, allocations: 0.9564 MB / 410.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.3958, allocations: 12.03 kB / 410.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.3959, allocations: 68.52 kB / 410.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005675/0.3965, allocations: 419.2 kB / 411.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.665e-05/0.3966, allocations: 29.38 kB / 411.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.268e-05/0.3966, allocations: 40.12 kB / 411.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007814/0.3974, allocations: 449.5 kB / 411.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.3975, allocations: 0 / 411.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.221e-05/0.3975, allocations: 16 kB / 411.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.3975, allocations: 8 kB / 411.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006195/0.3981, allocations: 319.8 kB / 411.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.4006, allocations: 1.703 MB / 413.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006844/0.4013, allocations: 371.4 kB / 414 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003133/0.4017, allocations: 184.8 kB / 414.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.4017, allocations: 4 kB / 414.2 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004364/0.4022, allocations: 262.4 kB / 414.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.423e-06/0.4022, allocations: 0 / 414.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002137/0.4043, allocations: 1.014 MB / 415.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.4044, allocations: 191.9 kB / 415.6 MB, free: 9.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000536/0.405, allocations: 0.4979 MB / 416.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.405, allocations: 37.7 kB / 416.2 MB, free: 8.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.4052, allocations: 252.8 kB / 416.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.4054, allocations: 138.8 kB / 416.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.4055, allocations: 74.14 kB / 416.6 MB, free: 8.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4057, allocations: 358.8 kB / 417 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.4059, allocations: 120.8 kB / 417.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.4062, allocations: 213.3 kB / 417.3 MB, free: 7.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.4067, allocations: 269.3 kB / 417.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.4067, allocations: 0 / 417.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008002/0.4075, allocations: 489 kB / 418 MB, free: 7.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.4075, allocations: 4 kB / 418.1 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4076, allocations: 0 / 418.1 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005188/0.4081, allocations: 159.4 kB / 418.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002034/0.4083, allocations: 51.91 kB / 418.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005205/0.4135, allocations: 6.651 MB / 424.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.4139, allocations: 43.77 kB / 425 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.4139, allocations: 15.98 kB / 425 MB, free: 15.52 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: 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.0002596/0.4142, allocations: 192.4 kB / 425.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.875e-05/0.4143, allocations: 59.73 kB / 425.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.4144, allocations: 52.77 kB / 425.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.4144, allocations: 8.094 kB / 425.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4144, allocations: 7.984 kB / 425.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.4144, allocations: 3.984 kB / 425.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005255/0.4149, allocations: 493 kB / 425.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.415, allocations: 4 kB / 425.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.4151, allocations: 27.97 kB / 425.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004377/0.4155, allocations: 159.2 kB / 426 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.756e-05/0.4156, allocations: 7.984 kB / 426 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004951/0.4205, allocations: 6.359 MB / 432.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4206, allocations: 0 / 432.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.4216, allocations: 0.5075 MB / 432.8 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.4218, allocations: 164.6 kB / 433 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.135e-05/0.4218, allocations: 15.94 kB / 433 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.4221, allocations: 35.91 kB / 433 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.4223, allocations: 56.05 kB / 433.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.4223, allocations: 16 kB / 433.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003997/0.4227, allocations: 359.1 kB / 433.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4227, allocations: 4 kB / 433.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008206/0.4235, allocations: 163.8 kB / 433.6 MB, free: 6.184 MB / 350.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.001087/0.4246, allocations: 428 kB / 434 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.4258, allocations: 0.7992 MB / 434.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4258, allocations: 4.062 kB / 434.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006845/0.4265, allocations: 0.6705 MB / 435.5 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005298/0.427, allocations: 119.3 kB / 435.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.429, allocations: 0.9812 MB / 436.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.4295, allocations: 0.8673 MB / 437.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.4297, allocations: 52.16 kB / 437.5 MB, free: 2.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.221e-05/0.4298, allocations: 31.44 kB / 437.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4298, allocations: 0 / 437.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of Templates: time 0.01802/0.4479, allocations: 9.623 MB / 447.2 MB, free: 8.711 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches