Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.001283/0.001283, 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.001437/0.001437, allocations: 213.7 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.1831/0.1831, allocations: 38.52 MB / 352.4 MB, free: 12.58 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.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.002366/0.002366, allocations: 75.02 kB / 492.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3221, allocations: 62.47 MB / 0.542 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007058/0.3292, allocations: 4.702 MB / 0.5466 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002718/0.3319, allocations: 1.523 MB / 0.5481 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002311/0.3321, allocations: 21.62 kB / 0.5481 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004848/0.3326, allocations: 124.7 kB / 0.5482 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007785/0.3334, allocations: 276.9 kB / 0.5485 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004183/0.3338, allocations: 109.6 kB / 0.5486 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.3349, allocations: 0.5162 MB / 0.5491 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002911/0.3351, allocations: 107.5 kB / 0.5492 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004055/0.3355, allocations: 208.4 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004633/0.336, allocations: 222.4 kB / 0.5496 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.228e-05/0.3361, allocations: 29.91 kB / 0.5496 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.11e-05/0.3362, allocations: 26.41 kB / 0.5497 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.3364, allocations: 99.91 kB / 0.5498 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002869/0.3366, allocations: 184 kB / 0.5499 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006946/0.3373, allocations: 388.5 kB / 0.5503 GB, free: 10.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.277e-06/0.3373, allocations: 0 / 0.5503 GB, free: 10.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3374, allocations: 0 / 0.5503 GB, free: 10.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.3374, allocations: 5.188 kB / 0.5503 GB, free: 10.06 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001574/0.3389, allocations: 0.5854 MB / 0.5509 GB, free: 9.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.718e-05/0.339, allocations: 17.38 kB / 0.5509 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.3391, allocations: 67.92 kB / 0.551 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.3393, allocations: 44.91 kB / 0.551 GB, free: 9.473 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008029/0.3401, allocations: 343.3 kB / 0.5513 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.3401, allocations: 19.5 kB / 0.5514 GB, free: 9.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.851e-05/0.3402, allocations: 29.92 kB / 0.5514 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006935/0.3408, allocations: 335 kB / 0.5517 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.3409, allocations: 9.172 kB / 0.5517 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.3409, allocations: 11.31 kB / 0.5517 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.3409, allocations: 6.344 kB / 0.5517 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005364/0.3415, allocations: 204.1 kB / 0.5519 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002579/0.3441, allocations: 1.442 MB / 0.5533 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006336/0.3447, allocations: 194.6 kB / 0.5535 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001901/0.3449, allocations: 77.53 kB / 0.5536 GB, free: 7.246 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.3449, allocations: 6.734 kB / 0.5536 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.345, allocations: 39.75 kB / 0.5536 GB, free: 7.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.335e-06/0.345, allocations: 1.281 kB / 0.5536 GB, free: 7.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001657/0.3466, allocations: 0.625 MB / 0.5542 GB, free: 6.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.3467, allocations: 130.8 kB / 0.5544 GB, free: 6.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005028/0.3472, allocations: 312.4 kB / 0.5547 GB, free: 6.367 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.3473, allocations: 35.11 kB / 0.5547 GB, free: 6.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000236/0.3475, allocations: 224.8 kB / 0.5549 GB, free: 6.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.831e-05/0.3476, allocations: 59.3 kB / 0.555 GB, free: 6.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.3477, allocations: 56.25 kB / 0.555 GB, free: 6.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.3479, allocations: 342.2 kB / 0.5554 GB, free: 5.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.3481, allocations: 49.88 kB / 0.5554 GB, free: 5.672 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.3483, allocations: 149.7 kB / 0.5555 GB, free: 5.516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004376/0.3487, allocations: 225.9 kB / 0.5558 GB, free: 5.316 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.3488, allocations: 5.406 kB / 0.5558 GB, free: 5.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005982/0.3494, allocations: 255.7 kB / 0.556 GB, free: 5.172 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.3494, allocations: 6.75 kB / 0.556 GB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3494, allocations: 2.781 kB / 0.556 GB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.3494, allocations: 9.469 kB / 0.556 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.3499, allocations: 82.8 kB / 0.5561 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.3513, allocations: 1.264 MB / 0.5573 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002577/0.3515, allocations: 16.17 kB / 0.5574 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.3516, allocations: 17.81 kB / 0.5574 GB, free: 3.801 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.3518, allocations: 176.4 kB / 0.5575 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.3519, allocations: 35.08 kB / 0.5576 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004613/0.3524, allocations: 185.5 kB / 0.5578 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3524, allocations: 6.672 kB / 0.5578 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3524, allocations: 1.156 kB / 0.5578 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3524, allocations: 1.406 kB / 0.5578 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.3536, allocations: 0.5209 MB / 0.5583 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3537, allocations: 1.219 kB / 0.5583 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003328/0.354, allocations: 45.53 kB / 0.5583 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.354, allocations: 1.062 kB / 0.5583 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.354, allocations: 2.25 kB / 0.5583 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.354, allocations: 2.344 kB / 0.5583 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.354, allocations: 5.531 kB / 0.5583 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006797/0.3547, allocations: 495.7 kB / 0.5588 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.923e-05/0.3548, allocations: 33.23 kB / 0.5588 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.329e-05/0.3548, allocations: 2.25 kB / 0.5588 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.3552, allocations: 8.562 kB / 0.5588 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.844e-05/0.3552, allocations: 15.95 kB / 0.5589 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.3553, allocations: 8 kB / 0.5589 GB, free: 2.598 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000323/0.3556, allocations: 223.2 kB / 0.5591 GB, free: 2.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3556, allocations: 0 / 0.5591 GB, free: 2.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007847/0.3564, allocations: 60 kB / 0.5591 GB, free: 2.32 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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.001086/0.3574, allocations: 1.034 MB / 0.5601 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005165/0.358, allocations: 147.7 kB / 0.5603 GB, free: 1.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.358, allocations: 4 kB / 0.5603 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.3581, allocations: 60.8 kB / 0.5603 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.3592, allocations: 107.9 kB / 0.5604 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005838/0.3651, allocations: 3.265 MB / 0.5636 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006356/0.3657, allocations: 0.7992 MB / 0.5644 GB, free: 12.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002889/0.366, allocations: 58.92 kB / 0.5645 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002591/0.3662, allocations: 115.4 kB / 0.5646 GB, free: 12.52 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3662, allocations: 0 / 0.5646 GB, free: 12.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04047/0.4067, allocations: 7.026 MB / 0.5714 GB, free: 5.652 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.52, allocations: 3.938 kB / 0.5714 GB, free: 5.648 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.337633631192148]