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.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.001448/0.001448, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001593/0.001593, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.56/1.56, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.1907/0.1907, allocations: 38.54 MB / 352.5 MB, free: 12.56 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.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"}) [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.002063/0.002063, allocations: 62.56 kB / 492.5 MB, free: 4.922 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3367, allocations: 62.47 MB / 0.542 GB, free: 480 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.00904/0.3457, allocations: 4.981 MB / 0.5469 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003571/0.3493, allocations: 1.519 MB / 0.5483 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005449/0.3498, allocations: 22.09 kB / 0.5484 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005053/0.3503, allocations: 107.8 kB / 0.5485 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008226/0.3511, allocations: 271.4 kB / 0.5487 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004425/0.3516, allocations: 147.2 kB / 0.5489 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.3527, allocations: 0.58 MB / 0.5494 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005946/0.3533, allocations: 302.8 kB / 0.5497 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000498/0.3538, allocations: 243.7 kB / 0.55 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004594/0.3543, allocations: 250.2 kB / 0.5502 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.759e-05/0.3544, allocations: 43.66 kB / 0.5502 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.841e-05/0.3545, allocations: 40 kB / 0.5503 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.3546, allocations: 125.6 kB / 0.5504 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002643/0.3549, allocations: 220.7 kB / 0.5506 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006953/0.3556, allocations: 0.5041 MB / 0.5511 GB, free: 9.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3556, allocations: 0 / 0.5511 GB, free: 9.484 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3556, allocations: 5.219 kB / 0.5511 GB, free: 9.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.3556, allocations: 0 / 0.5511 GB, free: 9.48 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001438/0.357, allocations: 0.6481 MB / 0.5517 GB, free: 8.953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.3571, allocations: 13.77 kB / 0.5517 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.3572, allocations: 70.69 kB / 0.5518 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.3573, allocations: 46.56 kB / 0.5519 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006995/0.358, allocations: 354.7 kB / 0.5522 GB, free: 8.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.3581, allocations: 88.77 kB / 0.5523 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.3582, allocations: 35.84 kB / 0.5523 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007572/0.359, allocations: 432.2 kB / 0.5527 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.359, allocations: 2.125 kB / 0.5527 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.359, allocations: 15.25 kB / 0.5527 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.359, allocations: 12.88 kB / 0.5528 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005625/0.3596, allocations: 279 kB / 0.553 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.362, allocations: 1.772 MB / 0.5548 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.3624, allocations: 172.7 kB / 0.5549 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.3625, allocations: 63.53 kB / 0.555 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.3626, allocations: 6.281 kB / 0.555 GB, free: 6.227 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.3626, allocations: 43.45 kB / 0.555 GB, free: 6.176 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.3626, allocations: 1.125 kB / 0.555 GB, free: 6.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001343/0.3639, allocations: 0.6444 MB / 0.5557 GB, free: 5.715 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/0.364, allocations: 109 kB / 0.5558 GB, free: 5.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/0.3644, allocations: 313.3 kB / 0.5561 GB, free: 5.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.3644, allocations: 31.11 kB / 0.5561 GB, free: 5.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.3646, allocations: 247.3 kB / 0.5563 GB, free: 5.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.136e-05/0.3647, allocations: 76.27 kB / 0.5564 GB, free: 5.055 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.3648, allocations: 65.33 kB / 0.5565 GB, free: 5.008 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3649, allocations: 342.8 kB / 0.5568 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.3651, allocations: 74.69 kB / 0.5569 GB, free: 4.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.3654, allocations: 203.8 kB / 0.5571 GB, free: 4.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004782/0.3659, allocations: 298.5 kB / 0.5573 GB, free: 4.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3659, allocations: 2.406 kB / 0.5573 GB, free: 4.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005832/0.3665, allocations: 327.7 kB / 0.5577 GB, free: 3.996 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.3665, allocations: 6.719 kB / 0.5577 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.3665, allocations: 4.594 kB / 0.5577 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3665, allocations: 6.375 kB / 0.5577 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.3668, allocations: 85.92 kB / 0.5578 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.3669, allocations: 11.92 kB / 0.5578 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.3671, allocations: 12 kB / 0.5578 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.3671, allocations: 16 kB / 0.5578 GB, free: 3.875 MB / 398.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.0002216/0.3673, allocations: 181.7 kB / 0.558 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.808e-05/0.3674, allocations: 35.75 kB / 0.558 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004366/0.3678, allocations: 192.6 kB / 0.5582 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3678, allocations: 8 kB / 0.5582 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3678, allocations: 0 / 0.5582 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.3678, allocations: 7.984 kB / 0.5582 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.3689, allocations: 0.5918 MB / 0.5588 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3689, allocations: 0 / 0.5588 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.3691, allocations: 43.91 kB / 0.5588 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3691, allocations: 0 / 0.5588 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.3691, allocations: 12.03 kB / 0.5588 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.3691, allocations: 0 / 0.5588 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3691, allocations: 4 kB / 0.5588 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006425/0.3698, allocations: 455 kB / 0.5593 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.921e-05/0.3698, allocations: 27.81 kB / 0.5593 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.3699, allocations: 8 kB / 0.5593 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.3701, allocations: 8.031 kB / 0.5593 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.3701, allocations: 15.98 kB / 0.5593 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.3702, allocations: 7.984 kB / 0.5593 GB, free: 2.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.3704, allocations: 219 kB / 0.5595 GB, free: 1.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3704, allocations: 4 kB / 0.5595 GB, free: 1.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004337/0.3708, allocations: 68 kB / 0.5596 GB, free: 1.918 MB / 398.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.0009463/0.3718, allocations: 0.9816 MB / 0.5606 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004455/0.3722, allocations: 187.7 kB / 0.5607 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3722, allocations: 0 / 0.5607 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.3724, allocations: 73.16 kB / 0.5608 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006693/0.3731, allocations: 93.25 kB / 0.5609 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004741/0.3778, allocations: 3.434 MB / 0.5643 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.3783, allocations: 0.8146 MB / 0.5651 GB, free: 12.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.3785, allocations: 55.25 kB / 0.5651 GB, free: 12.03 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.3787, allocations: 119.4 kB / 0.5652 GB, free: 11.91 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3787, allocations: 0 / 0.5652 GB, free: 11.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03918/0.4178, allocations: 7.395 MB / 0.5724 GB, free: 4.688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.69, allocations: 4.5 kB / 0.5724 GB, free: 4.684 MB / 414.1 MB " [Timeout remaining time 648] (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 --stepSize=0.0004 --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) [Timeout 52.5] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.646128286840394]