Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.0009685/0.0009685, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.001108/0.001108, allocations: 170 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.9312/0.9312, allocations: 177.1 MB / 204.3 MB, free: 5.727 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.2494/0.2494, 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.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.564e-05/2.738e-05, allocations: 6.219 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005713/0.005741, allocations: 5.083 MB / 435.3 MB, free: 8.492 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002574/0.008314, allocations: 1.503 MB / 436.8 MB, free: 6.984 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000339/0.008653, allocations: 23.81 kB / 436.8 MB, free: 6.961 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003958/0.009049, allocations: 126.9 kB / 436.9 MB, free: 6.836 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006533/0.009702, allocations: 317.9 kB / 437.2 MB, free: 6.523 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000304/0.01001, allocations: 167.6 kB / 437.4 MB, free: 6.359 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006694/0.01068, allocations: 0.7197 MB / 438.1 MB, free: 5.637 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003467/0.01102, allocations: 328.2 kB / 438.5 MB, free: 5.305 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004182/0.01144, allocations: 414.9 kB / 438.9 MB, free: 4.898 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003101/0.01175, allocations: 251.3 kB / 439.1 MB, free: 4.652 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.141e-05/0.0118, allocations: 55.94 kB / 439.2 MB, free: 4.598 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.804e-05/0.01186, allocations: 44 kB / 439.2 MB, free: 4.555 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.012, allocations: 167.5 kB / 439.4 MB, free: 4.391 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.01214, allocations: 179.6 kB / 439.5 MB, free: 4.215 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005859/0.01273, allocations: 0.5958 MB / 440.1 MB, free: 3.617 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.01273, allocations: 0 / 440.1 MB, free: 3.617 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.01273, allocations: 4 kB / 440.1 MB, free: 3.613 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.01274, allocations: 0 / 440.1 MB, free: 3.613 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001053/0.01379, allocations: 0.7134 MB / 440.9 MB, free: 2.871 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.01384, allocations: 15.98 kB / 440.9 MB, free: 2.855 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.614e-05/0.01393, allocations: 74.72 kB / 440.9 MB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.897e-05/0.01401, allocations: 60.61 kB / 441 MB, free: 2.715 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005826/0.01459, allocations: 396.8 kB / 441.4 MB, free: 2.305 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.29e-05/0.01468, allocations: 88.97 kB / 441.5 MB, free: 2.207 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.784e-05/0.01474, allocations: 51.94 kB / 441.5 MB, free: 2.156 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.01533, allocations: 0.497 MB / 442 MB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.01536, allocations: 7.891 kB / 442 MB, free: 1.609 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.01539, allocations: 16 kB / 442 MB, free: 1.594 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.0154, allocations: 12 kB / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/0.01583, allocations: 339.7 kB / 442.4 MB, free: 1.254 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.197/0.2128, allocations: 1.789 MB / 444.2 MB, free: 53.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003274/0.2131, allocations: 207.7 kB / 444.4 MB, free: 53.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.991e-05/0.2132, allocations: 93.25 kB / 444.5 MB, free: 53.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.2132, allocations: 3.906 kB / 444.5 MB, free: 53.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.2133, allocations: 41.47 kB / 444.5 MB, free: 53.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 2.686e-06/0.2133, allocations: 1.625 kB / 444.5 MB, free: 53.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001127/0.2144, allocations: 0.7798 MB / 445.3 MB, free: 53.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.2144, allocations: 106 kB / 445.4 MB, free: 53.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.2146, allocations: 342.6 kB / 445.7 MB, free: 52.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.2146, allocations: 31.08 kB / 445.8 MB, free: 52.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.128e-05/0.2147, allocations: 272.5 kB / 446 MB, free: 52.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/0.2148, allocations: 83.81 kB / 446.1 MB, free: 52.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.427e-05/0.2148, allocations: 68.78 kB / 446.2 MB, free: 52.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.216e-05/0.2149, allocations: 343.1 kB / 446.5 MB, free: 52.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.215, allocations: 85.08 kB / 446.6 MB, free: 52.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.2151, allocations: 216.3 kB / 446.8 MB, free: 52.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006886/0.2158, allocations: 489.6 kB / 447.3 MB, free: 51.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2158, allocations: 1.531 kB / 447.3 MB, free: 51.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004651/0.2163, allocations: 419 kB / 447.7 MB, free: 51.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.2163, allocations: 11.34 kB / 447.7 MB, free: 51.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.2163, allocations: 3.031 kB / 447.7 MB, free: 51.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002011/0.2165, allocations: 82.84 kB / 447.8 MB, free: 51.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.2167, allocations: 60.44 kB / 447.9 MB, free: 51.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.2178, allocations: 1.82 MB / 449.7 MB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.218, allocations: 14.02 kB / 449.7 MB, free: 50.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.218, allocations: 23.06 kB / 449.7 MB, free: 50.05 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002234/0.2183, allocations: 191.3 kB / 449.9 MB, free: 49.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.2183, allocations: 32.25 kB / 449.9 MB, free: 49.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.475e-05/0.2184, allocations: 39.3 kB / 450 MB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2184, allocations: 0 / 450 MB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.2184, allocations: 3.562 kB / 450 MB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.2184, allocations: 2.625 kB / 450 MB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.2194, allocations: 0.6796 MB / 450.7 MB, free: 49.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.2194, allocations: 3.938 kB / 450.7 MB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002029/0.2196, allocations: 47.73 kB / 450.7 MB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.123e-05/0.2197, allocations: 24.94 kB / 450.7 MB, free: 49.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.2197, allocations: 7.094 kB / 450.7 MB, free: 49.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006206/0.2203, allocations: 1.275 MB / 452 MB, free: 48.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2203, allocations: 0 / 452 MB, free: 48.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005513/0.2209, allocations: 0.508 MB / 452.5 MB, free: 47.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.143e-05/0.221, allocations: 44.48 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.221, allocations: 7.938 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.2212, allocations: 10.3 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.2213, allocations: 21.73 kB / 452.6 MB, free: 47.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.2213, allocations: 3.25 kB / 452.6 MB, free: 47.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001868/0.2215, allocations: 235.5 kB / 452.8 MB, free: 47.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2215, allocations: 1.094 kB / 452.8 MB, free: 47.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005574/0.222, allocations: 84.5 kB / 452.9 MB, free: 47.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007394/0.2228, allocations: 1.042 MB / 454 MB, free: 46.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006478/0.2234, allocations: 360.3 kB / 454.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2234, allocations: 4.031 kB / 454.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002608/0.2237, allocations: 208.6 kB / 454.5 MB, free: 46.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006773/0.2243, allocations: 111.4 kB / 454.6 MB, free: 46.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.2286, allocations: 3.615 MB / 458.2 MB, free: 43.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.2289, allocations: 239.7 kB / 458.5 MB, free: 43.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002531/0.2291, allocations: 52.12 kB / 458.5 MB, free: 43.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.2293, allocations: 141.3 kB / 458.7 MB, free: 43.74 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2293, allocations: 0 / 458.7 MB, free: 43.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.2574, allocations: 9.435 MB / 468.1 MB, free: 42.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.841/8.099, allocations: 3.094 kB / 468.1 MB, free: 42.1 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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: 10.130015448667109]