Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001096/0.001096, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001027/0.001027, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 55.92 kB / 280.6 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09642, allocations: 46.63 MB / 327.3 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005487/0.1019, allocations: 3.923 MB / 331.2 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002405/0.1044, allocations: 1.349 MB / 332.6 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003161/0.1048, allocations: 11.94 kB / 332.6 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008171/0.1056, allocations: 250.8 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005707/0.1062, allocations: 254.3 kB / 333.1 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006378/0.1069, allocations: 267.5 kB / 333.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007496/0.1076, allocations: 0.7125 MB / 334 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002775/0.1079, allocations: 161.1 kB / 334.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000335/0.1083, allocations: 283 kB / 334.5 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003359/0.1086, allocations: 298.8 kB / 334.8 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.502e-05/0.1087, allocations: 52 kB / 334.8 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.1089, allocations: 91.98 kB / 334.9 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.1091, allocations: 143.5 kB / 335 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003199/0.1094, allocations: 302.5 kB / 335.3 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006915/0.1101, allocations: 0.6929 MB / 336 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1101, allocations: 0 / 336 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1101, allocations: 0 / 336 MB, free: 11.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.1102, allocations: 0 / 336 MB, free: 11.68 MB / 286.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.001506/0.1117, allocations: 0.9413 MB / 337 MB, free: 10.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.1117, allocations: 11.97 kB / 337 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.1119, allocations: 64.19 kB / 337 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004973/0.1124, allocations: 410.8 kB / 337.4 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/0.1124, allocations: 29.38 kB / 337.5 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.614e-05/0.1125, allocations: 44.06 kB / 337.5 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000928/0.1134, allocations: 441.5 kB / 337.9 MB, free: 9.633 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1134, allocations: 4 kB / 337.9 MB, free: 9.629 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.1135, allocations: 16 kB / 338 MB, free: 9.613 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.1135, allocations: 12 kB / 338 MB, free: 9.602 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006106/0.1141, allocations: 315.8 kB / 338.3 MB, free: 9.293 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.1164, allocations: 1.707 MB / 340 MB, free: 7.492 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.1171, allocations: 363.1 kB / 340.3 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003119/0.1174, allocations: 188.5 kB / 340.5 MB, free: 6.941 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.798e-05/0.1175, allocations: 7.984 kB / 340.5 MB, free: 6.934 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004/0.1179, allocations: 266.3 kB / 340.8 MB, free: 6.648 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 3.437e-06/0.1179, allocations: 0 / 340.8 MB, free: 6.648 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002116/0.12, allocations: 1.013 MB / 341.8 MB, free: 5.543 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.1201, allocations: 195.8 kB / 342 MB, free: 5.309 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006074/0.1208, allocations: 0.494 MB / 342.5 MB, free: 4.801 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.608e-05/0.1208, allocations: 33.7 kB / 342.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.121, allocations: 256.4 kB / 342.8 MB, free: 4.508 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.987e-05/0.1211, allocations: 122.3 kB / 342.9 MB, free: 4.387 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.1212, allocations: 78.12 kB / 343 MB, free: 4.305 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1213, allocations: 354.8 kB / 343.3 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.1216, allocations: 128.8 kB / 343.4 MB, free: 3.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.1219, allocations: 209.3 kB / 343.7 MB, free: 3.582 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004405/0.1224, allocations: 269.3 kB / 343.9 MB, free: 3.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1224, allocations: 0 / 343.9 MB, free: 3.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000883/0.1233, allocations: 484.6 kB / 344.4 MB, free: 2.816 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.1233, allocations: 8.094 kB / 344.4 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1233, allocations: 4 kB / 344.4 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004974/0.1238, allocations: 155.3 kB / 344.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.124, allocations: 47.91 kB / 344.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005094/0.1291, allocations: 6.651 MB / 351.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004431/0.1296, allocations: 47.58 kB / 351.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.1297, allocations: 15.98 kB / 351.3 MB, free: 11.33 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.0003464/0.13, allocations: 201.4 kB / 351.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.77e-05/0.1301, allocations: 55.38 kB / 351.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.675e-05/0.1302, allocations: 52.77 kB / 351.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1302, allocations: 4 kB / 351.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.1302, allocations: 4.125 kB / 351.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1303, allocations: 7.922 kB / 351.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005466/0.1308, allocations: 493.1 kB / 352.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1308, allocations: 3.984 kB / 352.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.131, allocations: 27.98 kB / 352.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004876/0.1315, allocations: 163.2 kB / 352.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.1315, allocations: 4 kB / 352.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004723/0.1362, allocations: 6.351 MB / 358.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1363, allocations: 0 / 358.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.1373, allocations: 0.5073 MB / 359.2 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.1376, allocations: 164.3 kB / 359.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.474e-05/0.1376, allocations: 4 kB / 359.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/0.1379, allocations: 31.97 kB / 359.4 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.1381, allocations: 55.86 kB / 359.4 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.1381, allocations: 19.94 kB / 359.4 MB, free: 2.527 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004384/0.1386, allocations: 359.1 kB / 359.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1386, allocations: 0 / 359.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007851/0.1394, allocations: 163.8 kB / 359.9 MB, free: 2.016 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.0009976/0.1404, allocations: 442.5 kB / 360.4 MB, free: 1.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.1417, allocations: 0.8109 MB / 361.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1417, allocations: 0 / 361.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006979/0.1424, allocations: 0.6626 MB / 361.8 MB, free: 12 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005944/0.143, allocations: 117.8 kB / 362 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.1449, allocations: 0.9762 MB / 362.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.1454, allocations: 0.8595 MB / 363.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002118/0.1456, allocations: 52.08 kB / 363.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.416e-05/0.1457, allocations: 43.36 kB / 363.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1457, allocations: 0 / 363.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of Templates: time 0.01776/0.1634, allocations: 9.497 MB / 373.4 MB, free: 4.398 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches