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.001002/0.001002, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001406/0.001406, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9145/0.9145, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2312/0.2312, allocations: 29.41 MB / 290.1 MB, free: 2.449 MB / 266.7 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: Performance of FrontEnd - loaded program: time 3.656e-06/3.656e-06, allocations: 4 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.313e-05/2.679e-05, allocations: 2.281 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005151/0.005178, allocations: 4.436 MB / 434.7 MB, free: 9.125 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.006933, allocations: 1.398 MB / 436.1 MB, free: 7.723 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.007172, allocations: 23.81 kB / 436.1 MB, free: 7.699 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003894/0.007562, allocations: 115.1 kB / 436.2 MB, free: 7.586 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005765/0.008138, allocations: 278.1 kB / 436.5 MB, free: 7.312 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.0084, allocations: 119.8 kB / 436.6 MB, free: 7.195 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005759/0.008975, allocations: 0.5173 MB / 437.1 MB, free: 6.676 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.00916, allocations: 104.5 kB / 437.2 MB, free: 6.57 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003198/0.009479, allocations: 287.2 kB / 437.5 MB, free: 6.289 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.009704, allocations: 183.5 kB / 437.7 MB, free: 6.109 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.009736, allocations: 28 kB / 437.7 MB, free: 6.082 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.486e-05/0.009771, allocations: 24 kB / 437.7 MB, free: 6.059 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-05/0.009861, allocations: 115.6 kB / 437.8 MB, free: 5.945 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.876e-05/0.00996, allocations: 123.6 kB / 437.9 MB, free: 5.824 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003333/0.01029, allocations: 378.7 kB / 438.3 MB, free: 5.453 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.0103, allocations: 0 / 438.3 MB, free: 5.453 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.0103, allocations: 0 / 438.3 MB, free: 5.453 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.0103, allocations: 0 / 438.3 MB, free: 5.453 MB / 410.7 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.000759/0.01106, allocations: 0.5954 MB / 438.9 MB, free: 4.828 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.0111, allocations: 15.98 kB / 438.9 MB, free: 4.812 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.137e-05/0.01115, allocations: 58.73 kB / 439 MB, free: 4.746 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.393e-05/0.01121, allocations: 40.7 kB / 439 MB, free: 4.707 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.01165, allocations: 340.7 kB / 439.4 MB, free: 4.348 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.01167, allocations: 21.03 kB / 439.4 MB, free: 4.328 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.01171, allocations: 32.08 kB / 439.4 MB, free: 4.297 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003355/0.01205, allocations: 331.6 kB / 439.7 MB, free: 3.938 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.01206, allocations: 0 / 439.7 MB, free: 3.938 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.01208, allocations: 12 kB / 439.7 MB, free: 3.926 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.01209, allocations: 4 kB / 439.7 MB, free: 3.922 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.01232, allocations: 217.6 kB / 440 MB, free: 3.707 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.01375, allocations: 1.386 MB / 441.3 MB, free: 2.234 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.01405, allocations: 190.3 kB / 441.5 MB, free: 2.012 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.581e-05/0.01413, allocations: 71.53 kB / 441.6 MB, free: 1.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.01414, allocations: 8 kB / 441.6 MB, free: 1.922 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.01417, allocations: 38.56 kB / 441.6 MB, free: 1.875 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.412e-06/0.01417, allocations: 0 / 441.6 MB, free: 1.875 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007808/0.01495, allocations: 0.6253 MB / 442.3 MB, free: 1.219 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.01501, allocations: 132.5 kB / 442.4 MB, free: 1.059 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.01523, allocations: 321.6 kB / 442.7 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.01525, allocations: 29.7 kB / 442.7 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.01536, allocations: 216.1 kB / 443 MB, free: 496 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/0.0154, allocations: 67.8 kB / 443 MB, free: 428 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.722e-05/0.01546, allocations: 61.66 kB / 443.1 MB, free: 360 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.932e-05/0.01556, allocations: 338.8 kB / 443.4 MB, free: 12 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1925/0.2081, allocations: 45.78 kB / 443.5 MB, free: 54.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.2082, allocations: 148.8 kB / 443.6 MB, free: 54.22 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.2084, allocations: 218.5 kB / 443.8 MB, free: 54.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2084, allocations: 4.719 kB / 443.8 MB, free: 54.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000287/0.2087, allocations: 255.5 kB / 444.1 MB, free: 54.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.2087, allocations: 8.188 kB / 444.1 MB, free: 54.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.2087, allocations: 4.812 kB / 444.1 MB, free: 54.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.2087, allocations: 9.781 kB / 444.1 MB, free: 54.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.209, allocations: 86.39 kB / 444.2 MB, free: 54.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004271/0.2094, allocations: 1.266 MB / 445.4 MB, free: 52.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.2095, allocations: 14.58 kB / 445.5 MB, free: 52.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.2095, allocations: 12.97 kB / 445.5 MB, free: 52.78 MB / 410.7 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.0001346/0.2097, allocations: 160.6 kB / 445.6 MB, free: 52.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.904e-05/0.2097, allocations: 34.66 kB / 445.7 MB, free: 52.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001962/0.2099, allocations: 194 kB / 445.8 MB, free: 52.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2099, allocations: 2.969 kB / 445.8 MB, free: 52.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.2099, allocations: 6.562 kB / 445.9 MB, free: 52.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2099, allocations: 0 / 445.9 MB, free: 52.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004621/0.2104, allocations: 0.4996 MB / 446.4 MB, free: 52.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.2104, allocations: 3.312 kB / 446.4 MB, free: 52.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.2105, allocations: 38.83 kB / 446.4 MB, free: 52.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.2105, allocations: 3.062 kB / 446.4 MB, free: 52.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.2105, allocations: 5.5 kB / 446.4 MB, free: 52.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2105, allocations: 3.156 kB / 446.4 MB, free: 52.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2105, allocations: 3.938 kB / 446.4 MB, free: 52.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002423/0.2108, allocations: 0.4925 MB / 446.9 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.655e-05/0.2108, allocations: 24.61 kB / 446.9 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.2108, allocations: 14.03 kB / 446.9 MB, free: 52.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.2109, allocations: 10.7 kB / 447 MB, free: 52.01 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.541e-05/0.211, allocations: 7.547 kB / 447 MB, free: 52.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.211, allocations: 13.81 kB / 447 MB, free: 52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001069/0.2111, allocations: 221.6 kB / 447.2 MB, free: 51.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2111, allocations: 0 / 447.2 MB, free: 51.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002713/0.2113, allocations: 61 kB / 447.2 MB, free: 51.88 MB / 410.7 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.0003451/0.2117, allocations: 1.031 MB / 448.3 MB, free: 50.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.2119, allocations: 152.7 kB / 448.4 MB, free: 50.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2119, allocations: 0 / 448.4 MB, free: 50.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.341e-05/0.212, allocations: 66.12 kB / 448.5 MB, free: 50.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004679/0.2125, allocations: 88.2 kB / 448.6 MB, free: 50.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.2145, allocations: 3.177 MB / 451.8 MB, free: 48.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.2146, allocations: 199.8 kB / 452 MB, free: 48.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.2147, allocations: 57.53 kB / 452 MB, free: 48.61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.431e-05/0.2148, allocations: 114.9 kB / 452.1 MB, free: 48.52 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2148, allocations: 0 / 452.1 MB, free: 48.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.2361, allocations: 7.705 MB / 459.8 MB, free: 47.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.635/6.871, allocations: 3.094 kB / 459.8 MB, free: 47.11 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins/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: 8.88607433065772]