Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 213.5 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.568/1.568, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1903/0.1903, allocations: 38.53 MB / 352.5 MB, free: 12.57 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.Test.RotorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.Test.RotorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 63.89 kB / 492.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3781/0.3804, allocations: 62.47 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.005197/0.3856, allocations: 2.578 MB / 0.5445 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008437/0.3864, allocations: 460 kB / 0.545 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.3865, allocations: 0 / 0.545 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.3867, allocations: 17.7 kB / 0.545 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.3869, allocations: 28.75 kB / 0.545 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001428/0.387, allocations: 23.62 kB / 0.545 GB, free: 14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002102/0.3872, allocations: 96.7 kB / 0.5451 GB, free: 13.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.3874, allocations: 18.84 kB / 0.5451 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.3876, allocations: 48.42 kB / 0.5452 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.3877, allocations: 50.95 kB / 0.5452 GB, free: 13.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.3878, allocations: 6.875 kB / 0.5452 GB, free: 13.87 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.016e-05/0.3878, allocations: 8.25 kB / 0.5452 GB, free: 13.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.131e-05/0.3878, allocations: 21.28 kB / 0.5453 GB, free: 13.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.186e-05/0.3879, allocations: 44.11 kB / 0.5453 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.3881, allocations: 92.69 kB / 0.5454 GB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3881, allocations: 2.094 kB / 0.5454 GB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3881, allocations: 0 / 0.5454 GB, free: 13.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3881, allocations: 0 / 0.5454 GB, free: 13.75 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008034/0.3889, allocations: 344.3 kB / 0.5457 GB, free: 13.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.389, allocations: 14.27 kB / 0.5457 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.094e-05/0.389, allocations: 36.03 kB / 0.5458 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.449e-05/0.3891, allocations: 14.16 kB / 0.5458 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.3894, allocations: 134.9 kB / 0.5459 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.3894, allocations: 7.188 kB / 0.5459 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.3894, allocations: 16.69 kB / 0.5459 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.3897, allocations: 91.19 kB / 0.546 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3897, allocations: 0 / 0.546 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.3897, allocations: 9.172 kB / 0.546 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.3897, allocations: 1.281 kB / 0.546 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.3899, allocations: 69.09 kB / 0.5461 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008971/0.3908, allocations: 416.3 kB / 0.5465 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003403/0.3912, allocations: 79.48 kB / 0.5466 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.3913, allocations: 41.89 kB / 0.5466 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.3913, allocations: 1.469 kB / 0.5466 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.368e-05/0.3914, allocations: 38.56 kB / 0.5466 GB, free: 12.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.3914, allocations: 1.312 kB / 0.5466 GB, free: 12.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000454/0.3918, allocations: 144.6 kB / 0.5468 GB, free: 12.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.3919, allocations: 56.56 kB / 0.5468 GB, free: 12.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.3921, allocations: 142.8 kB / 0.547 GB, free: 12.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.3921, allocations: 25.7 kB / 0.547 GB, free: 12.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.422e-05/0.3922, allocations: 112.6 kB / 0.5471 GB, free: 12.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.644e-05/0.3922, allocations: 30.81 kB / 0.5471 GB, free: 12.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.111e-05/0.3922, allocations: 20.22 kB / 0.5472 GB, free: 12.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.3924, allocations: 324.9 kB / 0.5475 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.3926, allocations: 30.61 kB / 0.5475 GB, free: 11.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.3927, allocations: 65.03 kB / 0.5476 GB, free: 11.74 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002558/0.393, allocations: 98.42 kB / 0.5477 GB, free: 11.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.393, allocations: 1.125 kB / 0.5477 GB, free: 11.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003145/0.3933, allocations: 128.3 kB / 0.5478 GB, free: 11.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3933, allocations: 5.562 kB / 0.5478 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.3933, allocations: 4.969 kB / 0.5478 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.3933, allocations: 5.031 kB / 0.5478 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.3935, allocations: 33.02 kB / 0.5478 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3935, allocations: 2.219 kB / 0.5478 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3936, allocations: 13.14 kB / 0.5478 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.3936, allocations: 7.688 kB / 0.5478 GB, free: 11.56 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001064/0.3937, allocations: 114.2 kB / 0.548 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.491e-05/0.3938, allocations: 11.59 kB / 0.548 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003545/0.3941, allocations: 130.3 kB / 0.5481 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.3941, allocations: 9.062 kB / 0.5481 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3941, allocations: 0 / 0.5481 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.3941, allocations: 1.281 kB / 0.5481 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002838/0.3944, allocations: 180.8 kB / 0.5483 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3944, allocations: 0 / 0.5483 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.3946, allocations: 27.56 kB / 0.5483 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3946, allocations: 0 / 0.5483 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.3946, allocations: 1.156 kB / 0.5483 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.3946, allocations: 5.094 kB / 0.5483 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3946, allocations: 0 / 0.5483 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004834/0.3951, allocations: 257.5 kB / 0.5485 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.192e-05/0.3951, allocations: 11.19 kB / 0.5486 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.3951, allocations: 5.344 kB / 0.5486 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.3952, allocations: 13.17 kB / 0.5486 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.3953, allocations: 10.11 kB / 0.5486 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.3953, allocations: 1.188 kB / 0.5486 GB, free: 10.9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.067e-05/0.3954, allocations: 111.2 kB / 0.5487 GB, free: 10.81 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3954, allocations: 64 / 0.5487 GB, free: 10.81 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.3956, allocations: 24.84 kB / 0.5487 GB, free: 10.8 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSpeed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0008375/0.3965, allocations: 0.783 MB / 0.5495 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002883/0.3967, allocations: 86.5 kB / 0.5496 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3967, allocations: 0 / 0.5496 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.3969, allocations: 42.14 kB / 0.5496 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.3971, allocations: 15.47 kB / 0.5496 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.3994, allocations: 1.743 MB / 0.5513 GB, free: 8.469 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3998, allocations: 0.7021 MB / 0.552 GB, free: 7.758 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.443e-05/0.3999, allocations: 7.844 kB / 0.552 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.775e-05/0.3999, allocations: 32.08 kB / 0.552 GB, free: 7.727 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3999, allocations: 4 kB / 0.552 GB, free: 7.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.433, allocations: 2.548 MB / 0.5545 GB, free: 6.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.41, allocations: 4.969 kB / 0.5545 GB, free: 6.398 MB / 398.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Wind.Test.RotorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.392431318992749]