Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001008, allocations: 99.14 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1673/0.1673, allocations: 37.99 MB / 308.6 MB, free: 6.242 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 71.91 kB / 374.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2533, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006366/0.2597, allocations: 6.1 MB / 436.1 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002872/0.2627, allocations: 1.886 MB / 437.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003663/0.2631, allocations: 35.75 kB / 438 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004913/0.2636, allocations: 103.3 kB / 438.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00064/0.2643, allocations: 286.5 kB / 438.4 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003551/0.2646, allocations: 135.9 kB / 438.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006873/0.2653, allocations: 0.8799 MB / 439.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000378/0.2657, allocations: 370 kB / 439.7 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.266, allocations: 250.9 kB / 440 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003004/0.2663, allocations: 286.9 kB / 440.3 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.519e-05/0.2664, allocations: 32 kB / 440.3 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.289e-05/0.2664, allocations: 32 kB / 440.3 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.2666, allocations: 139.5 kB / 440.5 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002015/0.2668, allocations: 254.7 kB / 440.7 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004065/0.2672, allocations: 0.5762 MB / 441.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.2672, allocations: 0 / 441.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.2672, allocations: 0 / 441.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.2672, allocations: 0 / 441.3 MB, free: 8.398 MB / 318.1 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.001367/0.2686, allocations: 0.7893 MB / 442.1 MB, free: 7.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.262e-05/0.2687, allocations: 19.98 kB / 442.1 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.2688, allocations: 74.72 kB / 442.2 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.879e-05/0.2689, allocations: 56.28 kB / 442.2 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005715/0.2695, allocations: 431.8 kB / 442.6 MB, free: 6.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.916e-05/0.2696, allocations: 66.64 kB / 442.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.217e-05/0.2696, allocations: 43.98 kB / 442.8 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006515/0.2703, allocations: 0.4931 MB / 443.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.2703, allocations: 7.906 kB / 443.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.561e-05/0.2704, allocations: 23.98 kB / 443.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.2704, allocations: 8 kB / 443.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005118/0.2709, allocations: 347.7 kB / 443.6 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.2727, allocations: 1.984 MB / 445.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.2731, allocations: 214.8 kB / 445.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.2733, allocations: 110.5 kB / 445.9 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.2733, allocations: 4 kB / 445.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.2733, allocations: 38.5 kB / 446 MB, free: 3.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.2733, allocations: 0 / 446 MB, free: 3.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001385/0.2747, allocations: 0.8327 MB / 446.8 MB, free: 2.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.2748, allocations: 106.8 kB / 446.9 MB, free: 2.402 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.2751, allocations: 337.5 kB / 447.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.2751, allocations: 29.95 kB / 447.3 MB, free: 2.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.2752, allocations: 271.7 kB / 447.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.399e-05/0.2753, allocations: 78.83 kB / 447.6 MB, free: 1.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/0.2754, allocations: 73.61 kB / 447.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.024e-05/0.2755, allocations: 342.8 kB / 448 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.2756, allocations: 83.89 kB / 448.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.2759, allocations: 213.1 kB / 448.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009777/0.2769, allocations: 0.5647 MB / 448.9 MB, free: 268 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2769, allocations: 0 / 448.9 MB, free: 268 kB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008021/0.2777, allocations: 417.7 kB / 449.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.2777, allocations: 7.125 kB / 449.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.2778, allocations: 4 kB / 449.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003362/0.2781, allocations: 81.14 kB / 449.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.2784, allocations: 63.84 kB / 449.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.2802, allocations: 1.745 MB / 451.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.2805, allocations: 23.89 kB / 451.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.2805, allocations: 12 kB / 451.2 MB, free: 13.77 MB / 334.1 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.0002087/0.2807, allocations: 205.6 kB / 451.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.954e-05/0.2808, allocations: 31.62 kB / 451.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.488e-05/0.2809, allocations: 43.3 kB / 451.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.2809, allocations: 4 kB / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.2809, allocations: 3.938 kB / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2809, allocations: 0 / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.2821, allocations: 0.7727 MB / 452.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2821, allocations: 0 / 452.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00024/0.2823, allocations: 47.91 kB / 452.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.399e-05/0.2824, allocations: 16.86 kB / 452.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/0.2825, allocations: 11.98 kB / 452.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009429/0.2834, allocations: 1.28 MB / 453.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.2834, allocations: 0 / 453.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007408/0.2842, allocations: 0.5087 MB / 454.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.923e-05/0.2843, allocations: 116.8 kB / 454.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.2843, allocations: 15.94 kB / 454.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.2845, allocations: 15.98 kB / 454.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.2846, allocations: 11.98 kB / 454.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.2846, allocations: 11.98 kB / 454.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.2849, allocations: 227.2 kB / 454.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2849, allocations: 0 / 454.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004671/0.2853, allocations: 88 kB / 454.6 MB, free: 10.11 MB / 334.1 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.001037/0.2864, allocations: 1.049 MB / 455.7 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006967/0.2871, allocations: 359.2 kB / 456 MB, free: 8.656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.2871, allocations: 0 / 456 MB, free: 8.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.2875, allocations: 218.7 kB / 456.2 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006829/0.2882, allocations: 106.3 kB / 456.3 MB, free: 8.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005028/0.2932, allocations: 3.88 MB / 460.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005069/0.2937, allocations: 0.8426 MB / 461 MB, free: 3.375 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000199/0.2939, allocations: 55.25 kB / 461.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.2941, allocations: 139.4 kB / 461.2 MB, free: 3.184 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2941, allocations: 0 / 461.2 MB, free: 3.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.3148, allocations: 7.936 MB / 469.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.3151, allocations: 245.3 kB / 469.4 MB, free: 11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.284, allocations: 0 / 469.4 MB, free: 11 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)