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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001816/0.001816, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.627/1.627, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 50.08 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1447, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.008526/0.1533, allocations: 3.954 MB / 354.1 MB, free: 360 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003426/0.1568, allocations: 1.441 MB / 355.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008087/0.1576, allocations: 8 kB / 355.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001564/0.1592, allocations: 253.7 kB / 355.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001651/0.1609, allocations: 254.3 kB / 356.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.1625, allocations: 290.5 kB / 356.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001977/0.1645, allocations: 0.7047 MB / 357 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006406/0.1652, allocations: 165.1 kB / 357.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008475/0.1661, allocations: 283 kB / 357.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006695/0.1667, allocations: 294.8 kB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001805/0.1669, allocations: 52 kB / 357.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00042/0.1674, allocations: 99.91 kB / 357.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002343/0.1676, allocations: 143.5 kB / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005215/0.1681, allocations: 298.4 kB / 358.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.1692, allocations: 0.6968 MB / 359 MB, free: 11.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.1693, allocations: 3.984 kB / 359.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.045e-06/0.1693, allocations: 0 / 359.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.1693, allocations: 0 / 359.1 MB, free: 11.39 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.002419/0.1717, allocations: 0.9336 MB / 360 MB, free: 10.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.798e-05/0.1718, allocations: 8.031 kB / 360 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.1719, allocations: 78.72 kB / 360.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.1721, allocations: 68.19 kB / 360.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.1727, allocations: 414.8 kB / 360.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.1727, allocations: 29.38 kB / 360.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.126e-05/0.1728, allocations: 39.94 kB / 360.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007721/0.1736, allocations: 445.5 kB / 361 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.1736, allocations: 0 / 361 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.792e-05/0.1737, allocations: 19.94 kB / 361.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1737, allocations: 8 kB / 361.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006107/0.1743, allocations: 315.8 kB / 361.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002855/0.1772, allocations: 1.706 MB / 363.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008381/0.178, allocations: 363 kB / 363.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003758/0.1784, allocations: 184.8 kB / 363.6 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.693e-05/0.1785, allocations: 4 kB / 363.6 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005274/0.179, allocations: 270.4 kB / 363.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.643e-06/0.179, allocations: 0 / 363.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002329/0.1814, allocations: 1.014 MB / 364.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.1815, allocations: 187.9 kB / 365.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006705/0.1822, allocations: 0.4979 MB / 365.6 MB, free: 4.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/0.1822, allocations: 33.7 kB / 365.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.1825, allocations: 252.4 kB / 365.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.1826, allocations: 126.2 kB / 366 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.1828, allocations: 82.03 kB / 366.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.183, allocations: 354.8 kB / 366.4 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002724/0.1832, allocations: 124.8 kB / 366.5 MB, free: 3.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003675/0.1836, allocations: 221.2 kB / 366.8 MB, free: 3.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005175/0.1841, allocations: 265.2 kB / 367 MB, free: 2.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.1842, allocations: 11.88 kB / 367 MB, free: 2.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008666/0.185, allocations: 472.8 kB / 367.5 MB, free: 2.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.1851, allocations: 4 kB / 367.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.1851, allocations: 3.984 kB / 367.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006072/0.1857, allocations: 159.4 kB / 367.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.1859, allocations: 47.84 kB / 367.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3026/0.4885, allocations: 6.647 MB / 374.3 MB, free: 20.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/0.4891, allocations: 56.02 kB / 374.4 MB, free: 20.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.4891, allocations: 15.59 kB / 374.4 MB, free: 20.97 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.0002918/0.4894, allocations: 189.5 kB / 374.6 MB, free: 20.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.952e-05/0.4895, allocations: 49.19 kB / 374.6 MB, free: 20.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.4896, allocations: 63.02 kB / 374.7 MB, free: 20.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4896, allocations: 5.328 kB / 374.7 MB, free: 20.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.4896, allocations: 0 / 374.7 MB, free: 20.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.4897, allocations: 1.734 kB / 374.7 MB, free: 20.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006914/0.4903, allocations: 497.5 kB / 375.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.4904, allocations: 4.297 kB / 375.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.4905, allocations: 28.98 kB / 375.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005537/0.4911, allocations: 160.9 kB / 375.4 MB, free: 20.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.4911, allocations: 7.938 kB / 375.4 MB, free: 20.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004694/0.4958, allocations: 6.359 MB / 381.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4958, allocations: 0 / 381.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009919/0.4968, allocations: 0.5116 MB / 382.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.497, allocations: 153.6 kB / 382.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.264e-05/0.4971, allocations: 8 kB / 382.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/0.4974, allocations: 31.98 kB / 382.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.4976, allocations: 54.34 kB / 382.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.4976, allocations: 12.17 kB / 382.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005078/0.4981, allocations: 360.1 kB / 382.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.585e-06/0.4981, allocations: 0 / 382.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009143/0.4991, allocations: 175.8 kB / 383 MB, free: 14.03 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.002517/0.5016, allocations: 1.38 MB / 384.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.5034, allocations: 0.808 MB / 385.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5035, allocations: 0 / 385.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008229/0.5043, allocations: 0.6637 MB / 385.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007082/0.505, allocations: 119.7 kB / 386 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007831/0.5128, allocations: 4.337 MB / 390.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.5133, allocations: 0.8604 MB / 391.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002751/0.5136, allocations: 53.34 kB / 391.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.5138, allocations: 169.9 kB / 391.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5138, allocations: 4 kB / 391.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.821/2.335, allocations: 14.13 MB / 405.6 MB, free: 1.141 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/15.49, allocations: 4.562 kB / 405.6 MB, free: 1.137 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > 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