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.001367/0.001367, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001519/0.001519, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.496/1.496, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.1986/0.1986, allocations: 38.55 MB / 353.2 MB, free: 12.31 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="cs",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.002599/0.002599, allocations: 67.91 kB / 493.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.407, allocations: 62.47 MB / 0.5427 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007189/0.4142, allocations: 4.437 MB / 0.547 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003258/0.4175, allocations: 1.384 MB / 0.5484 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003602/0.4178, allocations: 21.75 kB / 0.5484 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005587/0.4184, allocations: 112.1 kB / 0.5485 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008198/0.4192, allocations: 277.3 kB / 0.5488 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.4195, allocations: 110 kB / 0.5489 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009291/0.4205, allocations: 0.5072 MB / 0.5494 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.4207, allocations: 108 kB / 0.5495 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003801/0.4211, allocations: 216.2 kB / 0.5497 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004344/0.4216, allocations: 221.6 kB / 0.5499 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-05/0.4216, allocations: 30.16 kB / 0.5499 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.456e-05/0.4217, allocations: 26.69 kB / 0.55 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.4218, allocations: 101.2 kB / 0.5501 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.422, allocations: 148.5 kB / 0.5502 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005357/0.4226, allocations: 391.8 kB / 0.5506 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4226, allocations: 0 / 0.5506 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4226, allocations: 0 / 0.5506 GB, free: 10.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.4226, allocations: 0 / 0.5506 GB, free: 10.35 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.0012/0.4238, allocations: 0.5905 MB / 0.5512 GB, free: 9.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.4239, allocations: 14.27 kB / 0.5512 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.422e-05/0.4239, allocations: 11.31 kB / 0.5512 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.416e-05/0.4239, allocations: 63.62 kB / 0.5512 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.71e-05/0.424, allocations: 44.72 kB / 0.5513 GB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007062/0.4247, allocations: 344.2 kB / 0.5516 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.4248, allocations: 18.69 kB / 0.5516 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.509e-05/0.4248, allocations: 30.47 kB / 0.5517 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005684/0.4254, allocations: 337.1 kB / 0.552 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.4254, allocations: 1.5 kB / 0.552 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-05/0.4255, allocations: 14.86 kB / 0.552 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.4255, allocations: 7.812 kB / 0.552 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003862/0.4259, allocations: 207.7 kB / 0.5522 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.4279, allocations: 1.391 MB / 0.5536 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000468/0.4284, allocations: 195.2 kB / 0.5537 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.4285, allocations: 74.06 kB / 0.5538 GB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.4286, allocations: 2.188 kB / 0.5538 GB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.4286, allocations: 33.91 kB / 0.5538 GB, free: 7.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.154e-06/0.4286, allocations: 0.9688 kB / 0.5538 GB, free: 7.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001339/0.43, allocations: 0.6263 MB / 0.5545 GB, free: 7.082 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.651e-05/0.4301, allocations: 140.1 kB / 0.5546 GB, free: 6.918 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.4304, allocations: 312.8 kB / 0.5549 GB, free: 6.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.4305, allocations: 27.17 kB / 0.5549 GB, free: 6.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.4306, allocations: 219 kB / 0.5551 GB, free: 6.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.4307, allocations: 76.03 kB / 0.5552 GB, free: 6.414 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.461e-05/0.4308, allocations: 48.05 kB / 0.5552 GB, free: 6.379 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.431, allocations: 338.9 kB / 0.5556 GB, free: 6.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.4311, allocations: 51.34 kB / 0.5556 GB, free: 6.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.4314, allocations: 155.4 kB / 0.5558 GB, free: 5.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.4317, allocations: 231 kB / 0.556 GB, free: 5.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4317, allocations: 6.312 kB / 0.556 GB, free: 5.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004394/0.4322, allocations: 250.2 kB / 0.5562 GB, free: 5.523 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.4322, allocations: 6.969 kB / 0.5562 GB, free: 5.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.4322, allocations: 11.5 kB / 0.5562 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.4322, allocations: 5.031 kB / 0.5563 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.4326, allocations: 86.83 kB / 0.5563 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.4337, allocations: 1.262 MB / 0.5576 GB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/0.4339, allocations: 13.61 kB / 0.5576 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.434, allocations: 13.22 kB / 0.5576 GB, free: 4.156 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.0002317/0.4342, allocations: 177 kB / 0.5578 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.764e-05/0.4343, allocations: 31.31 kB / 0.5578 GB, free: 3.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003423/0.4346, allocations: 189.4 kB / 0.558 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4346, allocations: 2.812 kB / 0.558 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.4346, allocations: 1.188 kB / 0.558 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.4346, allocations: 1.281 kB / 0.558 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008459/0.4355, allocations: 0.4971 MB / 0.5585 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4355, allocations: 1.031 kB / 0.5585 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002405/0.4357, allocations: 53.22 kB / 0.5585 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.4357, allocations: 2.531 kB / 0.5585 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.4357, allocations: 1.938 kB / 0.5585 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.4357, allocations: 2.031 kB / 0.5585 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.4358, allocations: 5.094 kB / 0.5585 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006476/0.4364, allocations: 494.4 kB / 0.559 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.054e-05/0.4365, allocations: 35.77 kB / 0.559 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.4365, allocations: 0 / 0.559 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.4367, allocations: 8 kB / 0.559 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.4367, allocations: 15.95 kB / 0.5591 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.4368, allocations: 12 kB / 0.5591 GB, free: 2.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002301/0.437, allocations: 223.2 kB / 0.5593 GB, free: 2.641 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.437, allocations: 0 / 0.5593 GB, free: 2.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004736/0.4375, allocations: 60 kB / 0.5593 GB, free: 2.582 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.0008945/0.4384, allocations: 1.023 MB / 0.5603 GB, free: 1.527 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004188/0.4388, allocations: 156.5 kB / 0.5605 GB, free: 1.375 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4388, allocations: 0 / 0.5605 GB, free: 1.375 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.4389, allocations: 67.86 kB / 0.5605 GB, free: 1.309 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007477/0.4397, allocations: 89.61 kB / 0.5606 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004729/0.4444, allocations: 3.27 MB / 0.5638 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.4446, allocations: 201.4 kB / 0.564 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000214/0.4448, allocations: 54.88 kB / 0.5641 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.445, allocations: 115.4 kB / 0.5642 GB, free: 13.39 MB / 414.1 MB Notification: Performance of SimCode: time 1.202e-06/0.445, allocations: 0 / 0.5642 GB, free: 13.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03596/0.481, allocations: 7.293 MB / 0.5713 GB, free: 6.309 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.25, allocations: 4.062 kB / 0.5713 GB, free: 6.305 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: 15.373911626986228]