Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.0008137/0.0008137, allocations: 91.7 kB / 16.65 MB, free: 6.598 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.0009127/0.0009128, allocations: 179.3 kB / 17.56 MB, free: 6.199 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.215/1.215, allocations: 223.2 MB / 241.6 MB, free: 14.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1571/0.1571, allocations: 38.09 MB / 330.8 MB, free: 8.613 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.0003099, allocations: 8.75 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08774, allocations: 59.17 MB / 460 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005128/0.09289, allocations: 5.036 MB / 465 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.09516, allocations: 1.659 MB / 466.7 MB, free: 252 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002417/0.09543, allocations: 27.81 kB / 466.7 MB, free: 224 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003409/0.09578, allocations: 99.41 kB / 466.8 MB, free: 124 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006689/0.09646, allocations: 230.9 kB / 467 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.09672, allocations: 123.8 kB / 467.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000739/0.09748, allocations: 0.7201 MB / 467.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003628/0.09785, allocations: 321.5 kB / 468.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.09809, allocations: 191.1 kB / 468.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.09838, allocations: 223 kB / 468.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.09843, allocations: 20 kB / 468.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.895e-05/0.09849, allocations: 24 kB / 468.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.135e-05/0.09858, allocations: 95.66 kB / 468.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.09877, allocations: 228.6 kB / 468.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003789/0.09916, allocations: 482.2 kB / 469.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.09917, allocations: 0 / 469.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.09917, allocations: 0 / 469.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.09918, allocations: 0 / 469.4 MB, free: 13.49 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009479/0.1001, allocations: 0.6291 MB / 470 MB, free: 12.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1002, allocations: 12.03 kB / 470.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.383e-05/0.1003, allocations: 70.72 kB / 470.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.933e-05/0.1003, allocations: 44.38 kB / 470.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.1008, allocations: 411.5 kB / 470.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.01e-05/0.1009, allocations: 58.7 kB / 470.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.832e-05/0.101, allocations: 36 kB / 470.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.1016, allocations: 432.1 kB / 471.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1017, allocations: 8 kB / 471.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.1017, allocations: 12 kB / 471.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.1017, allocations: 8 kB / 471.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000475/0.1022, allocations: 278 kB / 471.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.1041, allocations: 1.853 MB / 473.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.1044, allocations: 191.7 kB / 473.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.1046, allocations: 74.55 kB / 473.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.1046, allocations: 3.984 kB / 473.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.1046, allocations: 42.5 kB / 473.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.343e-06/0.1046, allocations: 0 / 473.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.00118/0.1058, allocations: 0.7165 MB / 474.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.1059, allocations: 106.8 kB / 474.4 MB, free: 8.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000278/0.1062, allocations: 312.5 kB / 474.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.1062, allocations: 29.7 kB / 474.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.1063, allocations: 239.6 kB / 474.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.1064, allocations: 71 kB / 475 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.995e-05/0.1064, allocations: 33.7 kB / 475 MB, free: 7.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1066, allocations: 338.8 kB / 475.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.1067, allocations: 84.58 kB / 475.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.1069, allocations: 201.5 kB / 475.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003934/0.1074, allocations: 302 kB / 475.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.1074, allocations: 7.938 kB / 475.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004974/0.1079, allocations: 328.5 kB / 476.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.1079, allocations: 8 kB / 476.3 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.1079, allocations: 8.031 kB / 476.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.1079, allocations: 8 kB / 476.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.1082, allocations: 83.83 kB / 476.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1082, allocations: 4 kB / 476.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.1084, allocations: 12 kB / 476.4 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.1084, allocations: 16 kB / 476.4 MB, free: 5.953 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001594/0.1086, allocations: 185.7 kB / 476.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.549e-05/0.1087, allocations: 35.56 kB / 476.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003599/0.109, allocations: 192.7 kB / 476.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.109, allocations: 4 kB / 476.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1091, allocations: 0 / 476.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1091, allocations: 7.984 kB / 476.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008174/0.1099, allocations: 0.6263 MB / 477.4 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1099, allocations: 0 / 477.4 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/0.1101, allocations: 39.92 kB / 477.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.1101, allocations: 4 kB / 477.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.1102, allocations: 8 kB / 477.5 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1102, allocations: 4 kB / 477.5 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1102, allocations: 0 / 477.5 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005328/0.1107, allocations: 463.9 kB / 478 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.907e-05/0.1108, allocations: 108.7 kB / 478.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.1108, allocations: 8 kB / 478.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.111, allocations: 4 kB / 478.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.1111, allocations: 19.97 kB / 478.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.1111, allocations: 7.938 kB / 478.1 MB, free: 4.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001912/0.1113, allocations: 219.1 kB / 478.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1113, allocations: 0 / 478.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003671/0.1117, allocations: 68 kB / 478.4 MB, free: 3.863 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007434/0.1124, allocations: 0.9854 MB / 479.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.1128, allocations: 203.6 kB / 479.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1128, allocations: 1.125 kB / 479.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.113, allocations: 87.91 kB / 479.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006448/0.1136, allocations: 89.48 kB / 479.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003934/0.1176, allocations: 3.663 MB / 483.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.1179, allocations: 0.8149 MB / 484.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001803/0.1181, allocations: 51.25 kB / 484.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.1183, allocations: 123.4 kB / 484.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1183, allocations: 0 / 484.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2692/0.3875, allocations: 6.512 MB / 490.9 MB, free: 7.258 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.3877, allocations: 213.7 kB / 491.1 MB, free: 7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.302, allocations: 0 / 491.1 MB, free: 7 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches