Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000836/0.0008361, allocations: 173.3 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.246/1.246, allocations: 205.4 MB / 222.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006952/0.0006952, allocations: 82.36 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1714/0.1714, allocations: 38.08 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003792/0.0003793, allocations: 16 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2915, allocations: 56.32 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006542/0.2981, allocations: 6.037 MB / 485.8 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006444/0.3046, allocations: 4.484 MB / 490.3 MB, free: 2.059 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005612/0.3052, allocations: 37.75 kB / 490.3 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00879/0.314, allocations: 4.546 MB / 494.8 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.3154, allocations: 476.5 kB / 495.3 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009692/0.3164, allocations: 270 kB / 495.6 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00273/0.3192, allocations: 1.949 MB / 497.5 MB, free: 15.81 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.3205, allocations: 0.8383 MB / 498.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000617/0.3211, allocations: 391.1 kB / 498.7 MB, free: 15.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006584/0.3218, allocations: 490.8 kB / 499.2 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.316e-05/0.3219, allocations: 31.53 kB / 499.2 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.3222, allocations: 114.1 kB / 499.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002934/0.3225, allocations: 283.2 kB / 499.6 MB, free: 14.54 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003683/0.3228, allocations: 354.8 kB / 500 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007878/0.3236, allocations: 0.7991 MB / 0.489 GB, free: 13.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3237, allocations: 0 / 0.489 GB, free: 13.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3237, allocations: 0 / 0.489 GB, free: 13.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.3237, allocations: 1.125 kB / 0.489 GB, free: 13.74 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.00168/0.3254, allocations: 0.8972 MB / 0.4899 GB, free: 13 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3254, allocations: 9.312 kB / 0.4899 GB, free: 13 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001388/0.3256, allocations: 105.1 kB / 0.49 GB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003952/0.326, allocations: 99.36 kB / 0.4901 GB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.3271, allocations: 0.6001 MB / 0.4907 GB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.344e-05/0.3272, allocations: 75.83 kB / 0.4908 GB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.3273, allocations: 71.41 kB / 0.4909 GB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.3286, allocations: 0.7959 MB / 0.4916 GB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/0.3286, allocations: 22.08 kB / 0.4917 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-05/0.3287, allocations: 25.39 kB / 0.4917 GB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.3288, allocations: 53.8 kB / 0.4917 GB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000979/0.3298, allocations: 0.5808 MB / 0.4923 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003977/0.3338, allocations: 2.94 MB / 0.4952 GB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007858/0.3346, allocations: 429.7 kB / 0.4956 GB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.3349, allocations: 230.8 kB / 0.4958 GB, free: 8.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.335, allocations: 8.438 kB / 0.4958 GB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004935/0.3355, allocations: 344.7 kB / 0.4961 GB, free: 8.477 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 2.064e-06/0.3355, allocations: 1 kB / 0.4961 GB, free: 8.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.0032/0.3387, allocations: 2.028 MB / 0.4981 GB, free: 6.961 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.187e-05/0.3388, allocations: 134.5 kB / 0.4982 GB, free: 6.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005424/0.3393, allocations: 447.4 kB / 0.4987 GB, free: 6.527 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.3394, allocations: 36.3 kB / 0.4987 GB, free: 6.488 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.3397, allocations: 334.3 kB / 0.499 GB, free: 6.195 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.3398, allocations: 154.3 kB / 0.4992 GB, free: 6.062 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.3399, allocations: 15.16 kB / 0.4992 GB, free: 6.051 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.34, allocations: 359.8 kB / 0.4995 GB, free: 5.703 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003799/0.3404, allocations: 233.2 kB / 0.4997 GB, free: 5.582 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005087/0.3409, allocations: 387.4 kB / 0.5001 GB, free: 5.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002741/0.3437, allocations: 1.336 MB / 0.5014 GB, free: 3.949 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3437, allocations: 4 kB / 0.5014 GB, free: 3.945 MB / 330.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001683/0.3454, allocations: 0.959 MB / 0.5024 GB, free: 2.969 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.3455, allocations: 39.72 kB / 0.5024 GB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3455, allocations: 4 kB / 0.5024 GB, free: 2.922 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008984/0.3464, allocations: 313.6 kB / 0.5027 GB, free: 2.609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000936/0.3473, allocations: 183.7 kB / 0.5029 GB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00663/0.354, allocations: 4.85 MB / 0.5076 GB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00039/0.3544, allocations: 31.98 kB / 0.5076 GB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.537e-05/0.3544, allocations: 20 kB / 0.5077 GB, free: 13.26 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.loadInertia.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0004301/0.3549, allocations: 306.2 kB / 0.508 GB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-05/0.3549, allocations: 51.42 kB / 0.508 GB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001177/0.3561, allocations: 0.8208 MB / 0.5088 GB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.3561, allocations: 4 kB / 0.5088 GB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3562, allocations: 0 / 0.5088 GB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3562, allocations: 11.92 kB / 0.5088 GB, free: 12 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.3585, allocations: 1.671 MB / 0.5105 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3585, allocations: 4.094 kB / 0.5105 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/0.3597, allocations: 187.8 kB / 0.5106 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002194/0.3599, allocations: 82.52 kB / 0.5107 GB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.36, allocations: 12 kB / 0.5107 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002788/0.3628, allocations: 3.961 MB / 0.5146 GB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3628, allocations: 3.938 kB / 0.5146 GB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.3642, allocations: 1.118 MB / 0.5157 GB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000238/0.3645, allocations: 172.4 kB / 0.5159 GB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.805e-05/0.3645, allocations: 19.94 kB / 0.5159 GB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.3648, allocations: 15.98 kB / 0.5159 GB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.3649, allocations: 35.95 kB / 0.5159 GB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.365, allocations: 12 kB / 0.5159 GB, free: 4.078 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003548/0.3653, allocations: 315.1 kB / 0.5162 GB, free: 3.773 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.653e-06/0.3653, allocations: 0 / 0.5162 GB, free: 3.773 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007006/0.366, allocations: 167.9 kB / 0.5164 GB, free: 3.609 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001691/0.3677, allocations: 1.656 MB / 0.518 GB, free: 1.859 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.3694, allocations: 0.9802 MB / 0.519 GB, free: 0.8398 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3694, allocations: 0.8125 kB / 0.519 GB, free: 0.8398 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000797/0.3702, allocations: 0.6476 MB / 0.5196 GB, free: 144 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007494/0.371, allocations: 131.5 kB / 0.5197 GB, free: 16 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006823/0.3778, allocations: 4.573 MB / 0.5242 GB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/0.3785, allocations: 0.9722 MB / 0.5251 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003209/0.3788, allocations: 223.4 kB / 0.5254 GB, free: 10.08 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3788, allocations: 0 / 0.5254 GB, free: 10.08 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.106/4.485, allocations: 16.56 MB / 0.5415 GB, free: 9.496 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)