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.001175/0.001175, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001157/0.001157, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.36/1.36, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009745/0.0009745, allocations: 53.61 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09429/0.09529, allocations: 49.45 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006196/0.1015, allocations: 3.95 MB / 354.7 MB, free: 464 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.1045, allocations: 1.445 MB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004969/0.105, allocations: 11.94 kB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.1061, allocations: 246.8 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008917/0.107, allocations: 246.4 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000844/0.1079, allocations: 298.9 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.109, allocations: 0.7047 MB / 357.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003786/0.1093, allocations: 173.1 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000558/0.1099, allocations: 271 kB / 358 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005235/0.1105, allocations: 298.7 kB / 358.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.1106, allocations: 52 kB / 358.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003164/0.1109, allocations: 95.97 kB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001835/0.1111, allocations: 147.5 kB / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003645/0.1115, allocations: 298.5 kB / 358.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009319/0.1124, allocations: 0.6968 MB / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1125, allocations: 0 / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1125, allocations: 0 / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.524e-05/0.1125, allocations: 0 / 359.6 MB, free: 11.5 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.002164/0.1147, allocations: 0.9335 MB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1147, allocations: 12.03 kB / 360.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.1149, allocations: 68.19 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006346/0.1156, allocations: 406.8 kB / 361 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.547e-05/0.1156, allocations: 33.36 kB / 361.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.675e-05/0.1157, allocations: 44.12 kB / 361.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008337/0.1165, allocations: 437.5 kB / 361.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1166, allocations: 3.984 kB / 361.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.641e-05/0.1166, allocations: 20 kB / 361.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1166, allocations: 12 kB / 361.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006671/0.1173, allocations: 311.8 kB / 361.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.12, allocations: 1.706 MB / 363.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007436/0.1208, allocations: 371 kB / 363.9 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.1211, allocations: 184.7 kB / 364.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.063e-05/0.1212, allocations: 8 kB / 364.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004929/0.1217, allocations: 262.4 kB / 364.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.094e-06/0.1217, allocations: 0 / 364.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002269/0.124, allocations: 1.014 MB / 365.4 MB, free: 5.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.1241, allocations: 187.9 kB / 365.6 MB, free: 5.137 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006154/0.1247, allocations: 0.494 MB / 366.1 MB, free: 4.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.1248, allocations: 41.7 kB / 366.1 MB, free: 4.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.125, allocations: 256.4 kB / 366.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.517e-05/0.1251, allocations: 118.3 kB / 366.5 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.1252, allocations: 74.05 kB / 366.5 MB, free: 4.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1254, allocations: 366.7 kB / 366.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002574/0.1256, allocations: 116.8 kB / 367 MB, free: 3.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003399/0.126, allocations: 221.2 kB / 367.2 MB, free: 3.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005055/0.1265, allocations: 273.1 kB / 367.5 MB, free: 3.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1265, allocations: 4 kB / 367.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008479/0.1274, allocations: 472.8 kB / 368 MB, free: 2.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.1274, allocations: 4 kB / 368 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1274, allocations: 4 kB / 368 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005366/0.1279, allocations: 167.3 kB / 368.1 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002347/0.1282, allocations: 47.91 kB / 368.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1849/0.3131, allocations: 6.642 MB / 374.8 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005538/0.3137, allocations: 58.41 kB / 374.9 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.642e-05/0.3138, allocations: 13.69 kB / 374.9 MB, free: 21.03 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.0002912/0.3141, allocations: 192.5 kB / 375.1 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.3142, allocations: 50.91 kB / 375.1 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.3143, allocations: 62.45 kB / 375.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3143, allocations: 7.062 kB / 375.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3144, allocations: 3.547 kB / 375.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.3144, allocations: 1.641 kB / 375.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006486/0.315, allocations: 494.6 kB / 375.7 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.315, allocations: 0.7031 kB / 375.7 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.3152, allocations: 25.25 kB / 375.7 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000426/0.3156, allocations: 163.9 kB / 375.9 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.3157, allocations: 6.625 kB / 375.9 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003847/0.3195, allocations: 6.359 MB / 382.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3195, allocations: 2.141 kB / 382.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009624/0.3205, allocations: 0.5024 MB / 382.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.3207, allocations: 155.9 kB / 382.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.3208, allocations: 11.31 kB / 382.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002873/0.3211, allocations: 33.11 kB / 382.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.3212, allocations: 57.02 kB / 383 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.98e-05/0.3213, allocations: 7.906 kB / 383 MB, free: 14.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004111/0.3217, allocations: 360.6 kB / 383.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3217, allocations: 0 / 383.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008489/0.3225, allocations: 171.9 kB / 383.5 MB, free: 14.11 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.0009764/0.3235, allocations: 446.8 kB / 384 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.3247, allocations: 0.8158 MB / 384.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3247, allocations: 4.188 kB / 384.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006134/0.3253, allocations: 0.6542 MB / 385.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006003/0.3259, allocations: 115 kB / 385.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.3279, allocations: 0.9967 MB / 386.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.3282, allocations: 0.8639 MB / 387.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.851e-05/0.3283, allocations: 32.56 kB / 387.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3283, allocations: 0 / 387.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01809/0.3464, allocations: 14.65 MB / 402.1 MB, free: 5.047 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 -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