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.001459/0.001459, allocations: 113 kB / 17.68 MB, free: 5.473 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.00171/0.00171, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.457/1.457, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 46.22 kB / 302 MB, free: 5.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1141, allocations: 49.46 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006242/0.1204, allocations: 3.948 MB / 355.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00302/0.1235, allocations: 1.437 MB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003276/0.1238, allocations: 7.938 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008754/0.1248, allocations: 254.8 kB / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005547/0.1253, allocations: 246.4 kB / 357.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007015/0.126, allocations: 290.3 kB / 357.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007/0.1268, allocations: 0.7124 MB / 358.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.1271, allocations: 176.8 kB / 358.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000333/0.1274, allocations: 271 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003748/0.1278, allocations: 302.7 kB / 359.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.779e-05/0.1279, allocations: 52 kB / 359.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.1281, allocations: 99.91 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.1283, allocations: 151.4 kB / 359.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002649/0.1286, allocations: 298.5 kB / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007323/0.1293, allocations: 0.7046 MB / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.1293, allocations: 0 / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1293, allocations: 0 / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1294, allocations: 0 / 360.4 MB, free: 10.76 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.001732/0.1311, allocations: 0.9413 MB / 361.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.1311, allocations: 8.031 kB / 361.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.1313, allocations: 72.19 kB / 361.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006238/0.1319, allocations: 410.8 kB / 361.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.132, allocations: 33.31 kB / 361.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.032e-05/0.132, allocations: 40.12 kB / 361.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007465/0.1328, allocations: 441.6 kB / 362.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1328, allocations: 0 / 362.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.1328, allocations: 16 kB / 362.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.1329, allocations: 11.94 kB / 362.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005988/0.1335, allocations: 315.8 kB / 362.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002385/0.1359, allocations: 1.695 MB / 364.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006885/0.1366, allocations: 367.5 kB / 364.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003211/0.1369, allocations: 180.8 kB / 364.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.777e-05/0.137, allocations: 4 kB / 364.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004613/0.1374, allocations: 266.4 kB / 365.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.613e-06/0.1374, allocations: 0 / 365.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002194/0.1396, allocations: 1.014 MB / 366.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/0.1398, allocations: 191.9 kB / 366.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006246/0.1404, allocations: 0.494 MB / 366.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.794e-05/0.1405, allocations: 37.7 kB / 366.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.1407, allocations: 252.4 kB / 367.1 MB, free: 3.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.1408, allocations: 126.3 kB / 367.3 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.141, allocations: 82.03 kB / 367.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1412, allocations: 358.8 kB / 367.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.1414, allocations: 116.8 kB / 367.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.1417, allocations: 213.3 kB / 368 MB, free: 2.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004542/0.1422, allocations: 273.1 kB / 368.3 MB, free: 2.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.1422, allocations: 0 / 368.3 MB, free: 2.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007899/0.143, allocations: 476.8 kB / 368.7 MB, free: 1.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.143, allocations: 11.98 kB / 368.8 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/0.143, allocations: 4 kB / 368.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004973/0.1435, allocations: 155.4 kB / 368.9 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.1438, allocations: 51.91 kB / 369 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2658/0.4096, allocations: 6.641 MB / 375.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005464/0.4102, allocations: 59.8 kB / 375.7 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.4103, allocations: 13.59 kB / 375.7 MB, free: 20.38 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.0003496/0.4106, allocations: 195.1 kB / 375.9 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.4107, allocations: 52.25 kB / 375.9 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001296/0.4109, allocations: 61 kB / 376 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.4109, allocations: 10.38 kB / 376 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4109, allocations: 0 / 376 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.118e-06/0.4109, allocations: 2.312 kB / 376 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006856/0.4116, allocations: 490 kB / 376.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.4116, allocations: 2.031 kB / 376.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.4118, allocations: 30.89 kB / 376.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004607/0.4123, allocations: 153.5 kB / 376.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.4123, allocations: 7.141 kB / 376.7 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004459/0.4168, allocations: 6.367 MB / 383 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4168, allocations: 1.25 kB / 383 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.418, allocations: 0.5031 MB / 383.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.4182, allocations: 162 kB / 383.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.008e-05/0.4183, allocations: 19.5 kB / 383.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.4186, allocations: 27.81 kB / 383.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.4188, allocations: 56.52 kB / 383.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.4189, allocations: 8.906 kB / 383.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005174/0.4194, allocations: 359.6 kB / 384.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4194, allocations: 0 / 384.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009706/0.4204, allocations: 170.3 kB / 384.3 MB, free: 13.39 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.001152/0.4215, allocations: 421.3 kB / 384.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.4228, allocations: 0.8169 MB / 385.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4228, allocations: 0 / 385.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007465/0.4236, allocations: 0.653 MB / 386.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006314/0.4242, allocations: 120.6 kB / 386.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00228/0.4265, allocations: 0.9581 MB / 387.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.427, allocations: 0.8624 MB / 388.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.4272, allocations: 44.94 kB / 388.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.026e-05/0.4273, allocations: 35.42 kB / 388.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of SimCode: time 1.573e-06/0.4273, allocations: 0 / 388.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Templates: time 0.02289/0.4502, allocations: 9.52 MB / 397.7 MB, free: 7.746 MB / 302.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 -s gbode -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/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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches