Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.0009138/0.0009138, 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.001032/0.001032, allocations: 174.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.9092/0.9092, allocations: 177.1 MB / 204.3 MB, free: 5.746 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.2749/0.2749, allocations: 29.41 MB / 290.1 MB, free: 2.457 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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.009e-05, allocations: 2.281 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005211/0.005231, allocations: 5.04 MB / 435.2 MB, free: 8.551 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002697/0.007928, allocations: 2.005 MB / 437.2 MB, free: 6.539 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.008204, allocations: 19.81 kB / 437.3 MB, free: 6.52 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004938/0.008698, allocations: 138.8 kB / 437.4 MB, free: 6.383 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008786/0.009576, allocations: 417.4 kB / 437.8 MB, free: 5.973 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004424/0.01002, allocations: 218 kB / 438 MB, free: 5.762 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008441/0.01086, allocations: 0.7392 MB / 438.8 MB, free: 5.02 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004354/0.0113, allocations: 327.8 kB / 439.1 MB, free: 4.691 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005418/0.01184, allocations: 430.8 kB / 439.5 MB, free: 4.27 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003363/0.01218, allocations: 243.3 kB / 439.7 MB, free: 4.031 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.378e-05/0.01223, allocations: 48 kB / 439.8 MB, free: 3.984 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.01246, allocations: 135.9 kB / 439.9 MB, free: 3.852 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.01258, allocations: 163.4 kB / 440.1 MB, free: 3.691 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.01273, allocations: 191.5 kB / 440.3 MB, free: 3.504 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007334/0.01347, allocations: 0.7009 MB / 441 MB, free: 2.801 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.01347, allocations: 0 / 441 MB, free: 2.801 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.01347, allocations: 0 / 441 MB, free: 2.801 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.01348, allocations: 0 / 441 MB, free: 2.801 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001233/0.01472, allocations: 0.8018 MB / 441.8 MB, free: 1.965 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.01476, allocations: 11.98 kB / 441.8 MB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.974e-05/0.01483, allocations: 78.72 kB / 441.9 MB, free: 1.867 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.205e-05/0.01492, allocations: 56.56 kB / 441.9 MB, free: 1.812 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005982/0.01552, allocations: 427.2 kB / 442.3 MB, free: 1.367 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.01555, allocations: 28.94 kB / 442.4 MB, free: 1.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.491e-05/0.0156, allocations: 40 kB / 442.4 MB, free: 1.301 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005134/0.01611, allocations: 486.8 kB / 442.9 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.01613, allocations: 7.922 kB / 442.9 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.897e-05/0.01616, allocations: 16 kB / 442.9 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.01617, allocations: 8 kB / 442.9 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003305/0.0165, allocations: 274.3 kB / 443.2 MB, free: 488 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1884/0.2049, allocations: 1.697 MB / 444.9 MB, free: 53.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.2052, allocations: 240.8 kB / 445.1 MB, free: 53.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.096e-05/0.2053, allocations: 87.52 kB / 445.2 MB, free: 53.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.2053, allocations: 2.844 kB / 445.2 MB, free: 53.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.2055, allocations: 174.2 kB / 445.4 MB, free: 53.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 2.215e-06/0.2055, allocations: 3.469 kB / 445.4 MB, free: 53.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.001363/0.2069, allocations: 0.8549 MB / 446.2 MB, free: 52.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.207, allocations: 139.8 kB / 446.4 MB, free: 52.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003873/0.2074, allocations: 416.5 kB / 446.8 MB, free: 52.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.2074, allocations: 31.45 kB / 446.8 MB, free: 52.42 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.2075, allocations: 274.1 kB / 447.1 MB, free: 52.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.248e-05/0.2076, allocations: 94.97 kB / 447.2 MB, free: 52.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.399e-05/0.2076, allocations: 69.41 kB / 447.2 MB, free: 52.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.83e-05/0.2077, allocations: 353.2 kB / 447.6 MB, free: 51.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.2078, allocations: 82.42 kB / 447.6 MB, free: 51.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.208, allocations: 239.3 kB / 447.9 MB, free: 51.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/0.2083, allocations: 309.4 kB / 448.2 MB, free: 51.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2083, allocations: 6.844 kB / 448.2 MB, free: 51.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005622/0.2088, allocations: 437.5 kB / 448.6 MB, free: 51.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.2088, allocations: 11.94 kB / 448.6 MB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2089, allocations: 5.844 kB / 448.6 MB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002787/0.2091, allocations: 95.16 kB / 448.7 MB, free: 51.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.2093, allocations: 67.19 kB / 448.8 MB, free: 51.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.2106, allocations: 1.898 MB / 450.7 MB, free: 49.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.2108, allocations: 23.88 kB / 450.7 MB, free: 49.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.2108, allocations: 12.47 kB / 450.7 MB, free: 49.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.2109, allocations: 198.9 kB / 450.9 MB, free: 49.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.781e-05/0.211, allocations: 42.78 kB / 451 MB, free: 49.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003889/0.2114, allocations: 300.9 kB / 451.3 MB, free: 49.13 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2114, allocations: 3.125 kB / 451.3 MB, free: 49.13 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2114, allocations: 6.844 kB / 451.3 MB, free: 49.13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.2114, allocations: 3.234 kB / 451.3 MB, free: 49.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007266/0.2121, allocations: 0.7007 MB / 452 MB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.2121, allocations: 3.406 kB / 452 MB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.2123, allocations: 46.69 kB / 452 MB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001215/0.2124, allocations: 48.89 kB / 452.1 MB, free: 48.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.2124, allocations: 7.938 kB / 452.1 MB, free: 48.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007108/0.2131, allocations: 1.436 MB / 453.5 MB, free: 47.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2131, allocations: 3.938 kB / 453.5 MB, free: 47.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004176/0.2135, allocations: 0.4926 MB / 454 MB, free: 47.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.635e-05/0.2136, allocations: 63.91 kB / 454.1 MB, free: 47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.2136, allocations: 7.766 kB / 454.1 MB, free: 46.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.2137, allocations: 13.73 kB / 454.1 MB, free: 46.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.2138, allocations: 23.25 kB / 454.1 MB, free: 46.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.2138, allocations: 10.62 kB / 454.1 MB, free: 46.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000191/0.214, allocations: 293 kB / 454.4 MB, free: 46.83 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.214, allocations: 1.312 kB / 454.4 MB, free: 46.83 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003771/0.2144, allocations: 121 kB / 454.5 MB, free: 46.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001361/0.2157, allocations: 1.429 MB / 456 MB, free: 45.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005689/0.2163, allocations: 397.7 kB / 456.3 MB, free: 45.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2163, allocations: 0 / 456.3 MB, free: 45.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.2165, allocations: 237.2 kB / 456.6 MB, free: 45.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.2169, allocations: 133.8 kB / 456.7 MB, free: 45.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.2202, allocations: 3.979 MB / 460.7 MB, free: 43.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.2203, allocations: 254.8 kB / 460.9 MB, free: 42.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.2205, allocations: 65.52 kB / 461 MB, free: 42.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.2206, allocations: 164.2 kB / 461.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/0.2206, allocations: 0 / 461.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.2483, allocations: 12.63 MB / 473.8 MB, free: 40.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/8.316, allocations: 7.438 kB / 473.8 MB, free: 40.48 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.350910129025578] Failed to read output from testmodel.py, exit status != 0: 8.430757161229849 8.441308762 8.425935421 Calling exit ...