Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.00107/0.00107, allocations: 86.77 kB / 16.31 MB, free: 6.449 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.001178/0.001178, allocations: 183.2 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3253/0.3253, allocations: 38.08 MB / 330.4 MB, free: 14.13 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002985, allocations: 12 kB / 400.2 MB, free: 9.113 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3062, allocations: 59.15 MB / 459.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.004725/0.311, allocations: 4.81 MB / 464.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.3131, allocations: 1.578 MB / 465.7 MB, free: 25.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002734/0.3134, allocations: 28 kB / 465.7 MB, free: 25.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.3137, allocations: 100.9 kB / 465.8 MB, free: 25.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006784/0.3144, allocations: 280.3 kB / 466.1 MB, free: 25.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.3148, allocations: 137.1 kB / 466.2 MB, free: 25.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007338/0.3155, allocations: 0.6093 MB / 466.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000418/0.316, allocations: 279.1 kB / 467.1 MB, free: 25.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.3163, allocations: 188.2 kB / 467.3 MB, free: 25.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003382/0.3166, allocations: 223.5 kB / 467.5 MB, free: 24.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.3167, allocations: 20.47 kB / 467.6 MB, free: 24.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.834e-05/0.3167, allocations: 20.03 kB / 467.6 MB, free: 24.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.3169, allocations: 97.19 kB / 467.7 MB, free: 24.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.476e-05/0.317, allocations: 109.6 kB / 467.8 MB, free: 24.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.3174, allocations: 392.3 kB / 468.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3175, allocations: 2.203 kB / 468.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3175, allocations: 0 / 468.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.3175, allocations: 0 / 468.2 MB, free: 24.72 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001041/0.3185, allocations: 0.6423 MB / 468.8 MB, free: 24.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.596e-05/0.3186, allocations: 9.594 kB / 468.8 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.604e-05/0.3187, allocations: 78.19 kB / 468.9 MB, free: 24.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.069e-05/0.3188, allocations: 50.38 kB / 468.9 MB, free: 24.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.3193, allocations: 374.7 kB / 469.3 MB, free: 23.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-05/0.3194, allocations: 61.75 kB / 469.4 MB, free: 23.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.698e-05/0.3195, allocations: 35.06 kB / 469.4 MB, free: 23.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006323/0.3201, allocations: 432.5 kB / 469.8 MB, free: 23.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3201, allocations: 8.781 kB / 469.8 MB, free: 23.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.3202, allocations: 24.22 kB / 469.9 MB, free: 23.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3202, allocations: 9.469 kB / 469.9 MB, free: 23.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004828/0.3207, allocations: 276.6 kB / 470.1 MB, free: 23.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.3226, allocations: 1.847 MB / 472 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003262/0.3229, allocations: 180.5 kB / 472.2 MB, free: 21.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.3231, allocations: 78.02 kB / 472.2 MB, free: 21.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.3231, allocations: 6.5 kB / 472.2 MB, free: 21.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.3231, allocations: 36.55 kB / 472.3 MB, free: 21.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.824e-06/0.3231, allocations: 0.9688 kB / 472.3 MB, free: 21.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001156/0.3243, allocations: 0.7072 MB / 473 MB, free: 21.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.3244, allocations: 112.5 kB / 473.1 MB, free: 21.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/0.3246, allocations: 308.4 kB / 473.4 MB, free: 20.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.3247, allocations: 29.7 kB / 473.4 MB, free: 20.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.3248, allocations: 245.7 kB / 473.7 MB, free: 20.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.719e-05/0.3248, allocations: 71.23 kB / 473.7 MB, free: 20.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/0.3249, allocations: 9.125 kB / 473.7 MB, free: 20.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.865e-05/0.3249, allocations: 344.3 kB / 474.1 MB, free: 20.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.3251, allocations: 73.45 kB / 474.1 MB, free: 20.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.3253, allocations: 204.3 kB / 474.3 MB, free: 20.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.3255, allocations: 107.1 kB / 474.5 MB, free: 20.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3255, allocations: 0 / 474.5 MB, free: 20.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004956/0.326, allocations: 329.3 kB / 474.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.326, allocations: 6.875 kB / 474.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.326, allocations: 4.125 kB / 474.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3261, allocations: 7.531 kB / 474.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002814/0.3264, allocations: 81.61 kB / 474.9 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.3264, allocations: 6.703 kB / 474.9 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.3266, allocations: 13.08 kB / 474.9 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.816e-05/0.3266, allocations: 21.56 kB / 474.9 MB, free: 19.85 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.3268, allocations: 190.9 kB / 475.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-05/0.3269, allocations: 31.09 kB / 475.1 MB, free: 19.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000387/0.3273, allocations: 197 kB / 475.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.3273, allocations: 3.219 kB / 475.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3273, allocations: 1.062 kB / 475.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.3273, allocations: 2.484 kB / 475.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008595/0.3282, allocations: 0.6221 MB / 475.9 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3282, allocations: 2.25 kB / 476 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.3284, allocations: 42.59 kB / 476 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3284, allocations: 2.781 kB / 476 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.3284, allocations: 10.34 kB / 476 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.3285, allocations: 5.969 kB / 476 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3285, allocations: 6.297 kB / 476 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/0.329, allocations: 450.4 kB / 476.5 MB, free: 18.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.329, allocations: 107 kB / 476.6 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.394e-05/0.3291, allocations: 11.45 kB / 476.6 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.3293, allocations: 4.922 kB / 476.6 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.679e-05/0.3293, allocations: 27.97 kB / 476.6 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3293, allocations: 4.781 kB / 476.6 MB, free: 18.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001883/0.3295, allocations: 215.8 kB / 476.8 MB, free: 18.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3295, allocations: 0 / 476.8 MB, free: 18.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004053/0.33, allocations: 75.25 kB / 476.9 MB, free: 18.53 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006442/0.3306, allocations: 0.9819 MB / 477.9 MB, free: 17.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003806/0.331, allocations: 194.2 kB / 478.1 MB, free: 17.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.331, allocations: 320 / 478.1 MB, free: 17.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.3312, allocations: 86.28 kB / 478.1 MB, free: 17.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006311/0.3318, allocations: 89.97 kB / 478.2 MB, free: 17.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003811/0.3356, allocations: 2.259 MB / 480.5 MB, free: 16.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.336, allocations: 0.8183 MB / 481.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002212/0.3362, allocations: 57.38 kB / 481.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.3364, allocations: 117.5 kB / 481.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3364, allocations: 0 / 481.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02605/0.3624, allocations: 6.463 MB / 487.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/0.3627, allocations: 194.1 kB / 488.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.885/2.248, allocations: 0.875 kB / 488.1 MB, free: 10.42 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat does not exist to compare? outputFormat=mat